summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-28 16:33:38 -0400
committerKen Martin <ken.martin@kitware.com>2002-08-28 16:33:38 -0400
commit499cef0367b1d578082084fa70e6a6c54ddb0d7a (patch)
tree9ed500e88b67e433412f2556c4abdb4a07ba5df0 /Tests
parent1168d5a85d2e9bf4b74926b1790ded87fd4d5072 (diff)
downloadcmake-499cef0367b1d578082084fa70e6a6c54ddb0d7a.tar.gz
now needs dynlib support
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/Executable/CMakeLists.txt6
-rw-r--r--Tests/ComplexOneConfig/Executable/CMakeLists.txt6
-rw-r--r--Tests/ComplexRelativePaths/Executable/CMakeLists.txt6
3 files changed, 15 insertions, 3 deletions
diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt
index 886b91fba3..9eaf3ff96c 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 886b91fba3..9eaf3ff96c 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 886b91fba3..9eaf3ff96c 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.