Skip to content

Commit

Permalink
TARGET_RUNTIME_DLL_DIRS
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Nov 7, 2024
1 parent df6aa0e commit a8faea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ jobs:
with:
channels: conda-forge
environment-file: "scripts/ci/environment.yml"
environment-name: "entwine-build"
mamba-version: "*"
channels: conda-forge,defaults
activate-environment: "entwine-build"
channel-priority: true


- name: CMake
Expand Down
5 changes: 3 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ macro(ENTWINE_ADD_TEST _name)
add_test(NAME ${_name} COMMAND ${test-name})

if (WIN32)
set_property(TEST ${_name} PROPERTY ENVIRONMENT
"PATH=$<SHELL_PATH:${CMAKE_BINARY_DIR}/bin>;$ENV{PATH}")
set_property(TEST ${_name} PROPERTY
ENVIRONMENT_MODIFICATION
PATH=path_list_append:$<TARGET_RUNTIME_DLL_DIRS:gtest_main>)
endif()

endmacro(ENTWINE_ADD_TEST)
Expand Down

0 comments on commit a8faea4

Please sign in to comment.