diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt index 886b91fba..9eaf3ff96 100644 --- a/Tests/Complex/Executable/CMakeLists.txt +++ b/Tests/Complex/Executable/CMakeLists.txt @@ -13,7 +13,11 @@ LINK_LIBRARIES(${COMPLEX_LIBS}) ADD_EXECUTABLE(complex complex) -TARGET_LINK_LIBRARIES(complex CMakeLib) +IF (UNIX) + TARGET_LINK_LIBRARIES(complex CMakeLib ${CMAKE_DL_LIBS}) +ELSE(UNIX) + TARGET_LINK_LIBRARIES(complex CMakeLib) +ENDIF (UNIX) # # Output the files required by 'complex' to a file. diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index 886b91fba..9eaf3ff96 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt @@ -13,7 +13,11 @@ LINK_LIBRARIES(${COMPLEX_LIBS}) ADD_EXECUTABLE(complex complex) -TARGET_LINK_LIBRARIES(complex CMakeLib) +IF (UNIX) + TARGET_LINK_LIBRARIES(complex CMakeLib ${CMAKE_DL_LIBS}) +ELSE(UNIX) + TARGET_LINK_LIBRARIES(complex CMakeLib) +ENDIF (UNIX) # # Output the files required by 'complex' to a file. diff --git a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt index 886b91fba..9eaf3ff96 100644 --- a/Tests/ComplexRelativePaths/Executable/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/Executable/CMakeLists.txt @@ -13,7 +13,11 @@ LINK_LIBRARIES(${COMPLEX_LIBS}) ADD_EXECUTABLE(complex complex) -TARGET_LINK_LIBRARIES(complex CMakeLib) +IF (UNIX) + TARGET_LINK_LIBRARIES(complex CMakeLib ${CMAKE_DL_LIBS}) +ELSE(UNIX) + TARGET_LINK_LIBRARIES(complex CMakeLib) +ENDIF (UNIX) # # Output the files required by 'complex' to a file.