1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Mathieu Malaterre <malat@debian.org>
Date: Wed, 11 Apr 2012 16:35:33 +0000
Subject: Link to math lib
Forwarded: Frederic Devernay
---
CMakeLists.txt | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b138275..c704c33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,10 +62,7 @@ set (cminpack_hdrs
cminpack.h minpack.h)
add_library (cminpack ${cminpack_srcs})
-
-if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
- TARGET_LINK_LIBRARIES(cminpack m)
-endif()
+target_link_libraries(cminpack m)
# Link with a BLAS library if requested
if (USE_BLAS)
@@ -94,4 +91,4 @@ endif ()
set_target_properties(cminpack PROPERTIES VERSION ${CMINPACK_VERSION} SOVERSION ${CMINPACK_SOVERSION})
add_subdirectory (cmake)
-add_subdirectory (examples)
\ No newline at end of file
+add_subdirectory (examples)
|