diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/cmake/modules/gd.cmake')
-rw-r--r-- | Build/source/libs/gd/libgd-src/cmake/modules/gd.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/libs/gd/libgd-src/cmake/modules/gd.cmake b/Build/source/libs/gd/libgd-src/cmake/modules/gd.cmake index bef21f94f36..963b4aeed59 100644 --- a/Build/source/libs/gd/libgd-src/cmake/modules/gd.cmake +++ b/Build/source/libs/gd/libgd-src/cmake/modules/gd.cmake @@ -7,7 +7,11 @@ MACRO(ADD_GD_TESTS) FOREACH(test_name ${TESTS_FILES}) SET(test_prog_name "test_${TEST_PREFIX}_${test_name}") add_executable(${test_prog_name} "${test_name}.c") - target_link_libraries (${test_prog_name} gdTest ${ARGV0}) + IF(WIN32) + target_link_libraries (${test_prog_name} gdTest ${ARGV0}) + ELSE(WIN32) + target_link_libraries (${test_prog_name} gdTest m ${ARGV0}) + ENDIF(WIN32) add_test(NAME ${test_prog_name} COMMAND ${test_prog_name}) ENDFOREACH(test_name) ENDMACRO(ADD_GD_TESTS) |