[cmake-commits] alex committed CMakeGenericSystem.cmake 1.14 1.15

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Jun 21 16:23:56 EDT 2007


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv6053/Modules

Modified Files:
	CMakeGenericSystem.cmake 
Log Message:

ENH: print a warning if ADD_LIBRARY( SHARED/MODULE ) is used and the target
platform doesn't support shared libraries

Alex


Index: CMakeGenericSystem.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeGenericSystem.cmake,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- CMakeGenericSystem.cmake	22 May 2007 13:15:00 -0000	1.14
+++ CMakeGenericSystem.cmake	21 Jun 2007 20:23:54 -0000	1.15
@@ -19,6 +19,9 @@
 SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
 SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")
 
+# basically all general purpose OSs support shared libs
+SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS FALSE)
+
 SET (CMAKE_SKIP_RPATH "NO" CACHE BOOL
      "If set, runtime paths are not added when using shared libraries.")
 



More information about the Cmake-commits mailing list