There was an error while loading. Please reload this page.
1 parent 6575518 commit ac1334cCopy full SHA for ac1334c
1 file changed
src/tests/CMakeLists.txt
@@ -94,6 +94,12 @@ set(TESTGLOBALFILTER_HDR
94
add_executable(test-global-filter ${TESTGLOBALFILTER_HDR} ${TESTGLOBALFILTER_SRC})
95
target_link_libraries(test-global-filter ${QT_MAJOR}::Test ${QT_MAJOR}::Widgets ${LIBSQLITE_NAME} ${QT5_COMPAT})
96
add_test(NAME test-global-filter COMMAND $<TARGET_FILE:test-global-filter>)
97
+if(WIN32)
98
+ # SQLite and SQLCipher are built as DLLs in the CMake prefix by the Windows CI jobs.
99
+ # Keep those prefixes on PATH while CTest launches this executable.
100
+ string(REPLACE ";" "\\;" TESTGLOBALFILTER_PATH "${CMAKE_PREFIX_PATH};$ENV{PATH}")
101
+ set_tests_properties(test-global-filter PROPERTIES ENVIRONMENT "PATH=${TESTGLOBALFILTER_PATH}")
102
+endif()
103
104
# test cache
105
0 commit comments