Revision: 55143
http://brlcad.svn.sourceforge.net/brlcad/?rev=55143&view=rev
Author: starseeker
Date: 2013-04-12 13:36:27 +0000 (Fri, 12 Apr 2013)
Log Message:
-----------
Have vds use the math library, if present
Modified Paths:
--------------
brlcad/trunk/src/other/libvds/CMakeLists.txt
Modified: brlcad/trunk/src/other/libvds/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/other/libvds/CMakeLists.txt 2013-04-12 13:30:39 UTC
(rev 55142)
+++ brlcad/trunk/src/other/libvds/CMakeLists.txt 2013-04-12 13:36:27 UTC
(rev 55143)
@@ -107,7 +107,14 @@
endif(NOT MAN_DIR)
#---------------------------------------------------------------------
+include(CheckLibraryExists)
+CHECK_LIBRARY_EXISTS(m cos "" HAVE_M_LIBRARY)
+if(HAVE_M_LIBRARY)
+ set(SYS_LIBS ${SYS_LIBS} m)
+endif(HAVE_M_LIBRARY)
+#---------------------------------------------------------------------
+
set(CORE_SRCS
build.c
cluster.c
@@ -138,6 +145,9 @@
add_library(libvds SHARED ${CORE_SRCS})
set_target_properties(libvds PROPERTIES VERSION 1.0.1 SOVERSION 1)
+if(SYS_LIBS)
+ target_link_libraries(libvds ${SYS_LIBS})
+endif(SYS_LIBS)
install(TARGETS libvds
RUNTIME DESTINATION ${BIN_DIR}
@@ -146,7 +156,11 @@
add_library(stdvds SHARED ${STD_SRCS})
set_target_properties(stdvds PROPERTIES VERSION 1.0.1 SOVERSION 1)
+if(SYS_LIBS)
+ target_link_libraries(stdvds ${SYS_LIBS})
+endif(SYS_LIBS)
+
install(TARGETS stdvds
RUNTIME DESTINATION ${BIN_DIR}
LIBRARY DESTINATION ${LIB_DIR}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits