Skip to content

Commit 4c0ae15

Browse files
smuzaffarbellenot
authored andcommitted
Fix for CMAKE_SOURCE_DIR with special characters . and +
1 parent 6831bfd commit 4c0ae15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,7 @@ foreach(dir_to_copy ${directories_to_copy})
328328
file(GLOB_RECURSE artifacts_in ${dir_to_copy}/*)
329329
list(FILTER artifacts_in EXCLUDE REGEX "\.(d|swp|so|dylib|lib|dll|pcm|bak)$")
330330

331-
set(artifacts_out ${artifacts_in})
332-
list(TRANSFORM artifacts_out REPLACE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
331+
string(REPLACE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} artifacts_out "${artifacts_in}")
333332
list(APPEND all_artifacts ${artifacts_out})
334333

335334
add_custom_command(OUTPUT ${artifacts_out}

0 commit comments

Comments
 (0)