[cmake-commits] alex committed Generic.cmake 1.1 1.2

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


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

Modified Files:
	Generic.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: Generic.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Generic.cmake,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Generic.cmake	11 Jun 2007 19:47:35 -0000	1.1
+++ Generic.cmake	21 Jun 2007 20:23:54 -0000	1.2
@@ -6,3 +6,7 @@
 # about the platform. So everything has to be specified
 # in the system/compiler files ${CMAKE_SYSTEM_NAME}-<compiler_basename>.cmake
 # and/or ${CMAKE_SYSTEM_NAME}-<compiler_basename>-${CMAKE_SYSTEM_PROCESSOR}.cmake
+
+# (embedded) targets without operating system usually don't support shared libraries
+SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS TRUE)
+



More information about the Cmake-commits mailing list