Skip to content

Commit

Permalink
test: fix windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Jun 8, 2020
1 parent 9e21ae2 commit 89bd429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ MACRO(ADD_PYTHON_UNIT_TEST NAME SOURCE)
SET(MODULES "${ARGN}") # ARGN is not a variable
FOREACH(MODULE_PATH IN LISTS MODULES)
LIST(APPEND PYTHONPATH "${CMAKE_BINARY_DIR}/${MODULE_PATH}")
IF(WIN32)
IF(CMAKE_GENERATOR MATCHES "Visual Studio")
LIST(APPEND PYTHONPATH "${CMAKE_BINARY_DIR}/${MODULE_PATH}/$<CONFIG>")
ENDIF(WIN32)
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio")
ENDFOREACH(MODULE_PATH IN LISTS MODULES)

IF(DEFINED ENV{PYTHONPATH})
Expand Down

0 comments on commit 89bd429

Please sign in to comment.