Skip to content

Commit

Permalink
ide: fix parsing of file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Feb 10, 2024
1 parent 0fa7e43 commit aa6f919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ide.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function(ADD_GROUP GROUP_NAME FILENAMES)
foreach(filename ${${FILENAMES}})
get_filename_component(filenamePath ${filename} PATH)
get_filename_component(filenameName ${filename} NAME)
string(REGEX REPLACE "${PROJECT_BINARY_DIR}" "" filenamePath
string(REGEX REPLACE "${PROJECT_BINARY_DIR}/" "" filenamePath
"${filenamePath}/")
string(REGEX REPLACE "${PROJECT_SOURCE_DIR}" "" filenamePath
string(REGEX REPLACE "${PROJECT_SOURCE_DIR}/" "" filenamePath
"${filenamePath}/")
string(REGEX REPLACE "//" "/" filenamePath ${filenamePath})
list(APPEND REDUCED_FILENAMES ${filenamePath})
Expand Down

0 comments on commit aa6f919

Please sign in to comment.