We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b28de commit 0e099ffCopy full SHA for 0e099ff
1 file changed
cmake/test/CMakeLists.txt
@@ -150,8 +150,15 @@ if(BUILD_PYTHON)
150
)
151
# Set PYTHONPATH to find pygetdata module
152
# $<CONFIG> is Release/Debug on multi-config (Windows), empty on single-config (Unix)
153
- set_tests_properties(python_${testname} PROPERTIES
154
- ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/lib/$<CONFIG>"
155
- )
+ # On Windows, also add DLL directory to PATH so getdata.dll can be found
+ if(WIN32)
+ set_tests_properties(python_${testname} PROPERTIES
156
+ ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/lib/$<CONFIG>;PATH=${CMAKE_BINARY_DIR}/bin/$<CONFIG>;$ENV{PATH}"
157
+ )
158
+ else()
159
160
+ ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/lib/$<CONFIG>"
161
162
+ endif()
163
endforeach()
164
endif()
0 commit comments