Skip to content

Commit 4e76810

Browse files
authored
Support testing for both Cygwin and MSYS
MSYS implies and derives from Cygwin in CMake
1 parent be69197 commit 4e76810

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ else()
7474
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE_DIR:ojph_compress>/ojph_compress.wasm" "./"
7575
)
7676
endif(EMSCRIPTEN)
77-
if(MSYS)
77+
if(CYGWIN)
7878
add_custom_command(TARGET test_executables POST_BUILD
79-
COMMAND ${CMAKE_COMMAND} -E copy "../bin/msys-gtest.dll" "./"
80-
COMMAND ${CMAKE_COMMAND} -E copy "../bin/msys-gtest_main.dll" "./"
79+
COMMAND ${CMAKE_COMMAND} -E copy "../bin/${CMAKE_SHARED_LIBRARY_PREFIX}gtest.dll" "./"
80+
COMMAND ${CMAKE_COMMAND} -E copy "../bin/${CMAKE_SHARED_LIBRARY_PREFIX}gtest_main.dll" "./"
8181
)
82-
endif(MSYS)
82+
endif()
8383
endif(MSVC)

0 commit comments

Comments
 (0)