Skip to content

Commit

Permalink
Merge pull request #207 from Olllom/cmake_fix
Browse files Browse the repository at this point in the history
escape backslashes in PATH
  • Loading branch information
beniz authored May 27, 2020
2 parents 4083409 + 3b7b0d5 commit 135c0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ macro (cmaes_add_test name)
target_link_libraries (t_${name} cmaes)
add_test (NAME ${name} COMMAND t_${name})
if (WIN32)
set_tests_properties (${name} PROPERTIES ENVIRONMENT "PATH=${PROJECT_BINARY_DIR}\\src\\${CMAKE_BUILD_TYPE};${PROJECT_BINARY_DIR}\\src;$ENV{PATH}") # to load dll
set_tests_properties (${name} PROPERTIES ENVIRONMENT "PATH=${PROJECT_BINARY_DIR}\\src\\${CMAKE_BUILD_TYPE}\;${PROJECT_BINARY_DIR}\\src\;$ENV{PATH}") # to load dll
endif ()
endmacro ()

Expand Down

0 comments on commit 135c0f8

Please sign in to comment.