CMake: MINGW implies WIN32

This commit is contained in:
Michel Zou
2020-10-30 13:09:23 +01:00
parent 6c0f954d68
commit 0db1fe81d5
14 changed files with 33 additions and 32 deletions

View File

@@ -41,7 +41,7 @@ endif ()
message (STATUS "COMMAND: ${TEST_PROGRAM} ${TEST_ARGS}")
if (TEST_LIBRARY_DIRECTORY)
if (WIN32 OR MINGW)
if (WIN32)
set (ENV{PATH} "$ENV{PATH};${TEST_LIBRARY_DIRECTORY}")
else ()
set (ENV{LD_LIBRARY_PATH} "$ENV{LD_LIBRARY_PATH}:${TEST_LIBRARY_DIRECTORY}")