Skip to content

Commit

Permalink
native paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jun 4, 2024
1 parent bd5fc19 commit ee3d882
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ macro(ENTWINE_ADD_TEST _name)

add_test(NAME ${_name} COMMAND ${test-name})
if (WIN32)
set_property(TEST ${_name} PROPERTY ENVIRONMENT
"PATH=${CMAKE_BINARY_DIR}/bin:$ENV{PATH}")
file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR} TESTBINDIR)
cmake_path(SET TESTBINDIR "${CMAKE_BINARY_DIR}/bin")
cmake_path(CONVERT "${TESTBINDIR}" TO_NATIVE_PATH_LIST native_paths)
set_property(TEST ${_name} PROPERTY ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:${TESTBINDIR}")
endif()
endmacro(ENTWINE_ADD_TEST)

Expand Down

0 comments on commit ee3d882

Please sign in to comment.