summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-25 14:08:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-25 14:08:46 (GMT)
commit332c6535868dbbc7306c06b812ad17e13bd39ea0 (patch)
tree015bbf40f02dfef17350e93599269055ff71e23c /Tests
parent5902279ebc28df950c3d076b4738449cd8d2e042 (diff)
downloadCMake-332c6535868dbbc7306c06b812ad17e13bd39ea0.zip
CMake-332c6535868dbbc7306c06b812ad17e13bd39ea0.tar.gz
CMake-332c6535868dbbc7306c06b812ad17e13bd39ea0.tar.bz2
Check for library
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LoadCommand/CMakeLists.txt3
-rw-r--r--Tests/LoadCommand/LoadedCommand.h.in3
-rw-r--r--Tests/LoadCommandOneConfig/CMakeLists.txt3
-rw-r--r--Tests/LoadCommandOneConfig/LoadedCommand.h.in3
4 files changed, 12 insertions, 0 deletions
diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt
index e369661..64955cb 100644
--- a/Tests/LoadCommand/CMakeLists.txt
+++ b/Tests/LoadCommand/CMakeLists.txt
@@ -24,6 +24,9 @@ INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
CHECK_INCLUDE_FILE("sys/prctl.h" HAVE_SYS_PRCTL_H)
CHECK_INCLUDE_FILE("sys/prafasdfctl.h" HAVE_SYS_PRAFASDFCTL_H)
+INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
+CHECK_LIBRARY_EXISTS(m ceil "" HAVE_LIBM)
+
CONFIGURE_FILE(${LoadedCommand_SOURCE_DIR}/LoadedCommand.h.in
${LoadedCommand_BINARY_DIR}/LoadedCommand.h)
diff --git a/Tests/LoadCommand/LoadedCommand.h.in b/Tests/LoadCommand/LoadedCommand.h.in
index ee634a0..5b7a307 100644
--- a/Tests/LoadCommand/LoadedCommand.h.in
+++ b/Tests/LoadCommand/LoadedCommand.h.in
@@ -18,3 +18,6 @@
/* Check for headers */
#cmakedefine HAVE_SYS_PRCTL_H
#cmakedefine HAVE_SYS_PRAFASDFCTL_H
+
+/* Check for libraries */
+#cmakedefine HAVE_LIBM \ No newline at end of file
diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt
index e369661..64955cb 100644
--- a/Tests/LoadCommandOneConfig/CMakeLists.txt
+++ b/Tests/LoadCommandOneConfig/CMakeLists.txt
@@ -24,6 +24,9 @@ INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
CHECK_INCLUDE_FILE("sys/prctl.h" HAVE_SYS_PRCTL_H)
CHECK_INCLUDE_FILE("sys/prafasdfctl.h" HAVE_SYS_PRAFASDFCTL_H)
+INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake)
+CHECK_LIBRARY_EXISTS(m ceil "" HAVE_LIBM)
+
CONFIGURE_FILE(${LoadedCommand_SOURCE_DIR}/LoadedCommand.h.in
${LoadedCommand_BINARY_DIR}/LoadedCommand.h)
diff --git a/Tests/LoadCommandOneConfig/LoadedCommand.h.in b/Tests/LoadCommandOneConfig/LoadedCommand.h.in
index ee634a0..5b7a307 100644
--- a/Tests/LoadCommandOneConfig/LoadedCommand.h.in
+++ b/Tests/LoadCommandOneConfig/LoadedCommand.h.in
@@ -18,3 +18,6 @@
/* Check for headers */
#cmakedefine HAVE_SYS_PRCTL_H
#cmakedefine HAVE_SYS_PRAFASDFCTL_H
+
+/* Check for libraries */
+#cmakedefine HAVE_LIBM \ No newline at end of file