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

cmake-commits at cmake.org cmake-commits at cmake.org
Tue May 22 09:15:02 EDT 2007


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

Modified Files:
	gcc.cmake 
Log Message:

STYLE: move the two CMAKE_SHARED_LIBRARYC/CXX_FLAGS for gcc from
CMakeGenericSystem.cmake to gcc.cmake

Alex


Index: gcc.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/gcc.cmake,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- gcc.cmake	19 Feb 2007 18:53:25 -0000	1.14
+++ gcc.cmake	22 May 2007 13:15:00 -0000	1.15
@@ -1,4 +1,5 @@
 IF(CMAKE_COMPILER_IS_GNUCC)
+  SET (CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")     # -pic 
   SET (CMAKE_C_FLAGS_INIT "")
   SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")
   SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
@@ -12,6 +13,7 @@
 ENDIF(CMAKE_COMPILER_IS_GNUCC)
 
 IF(CMAKE_COMPILER_IS_GNUCXX)
+  SET (CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC")   # -pic
   SET (CMAKE_CXX_FLAGS_INIT "")
   SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
   SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
@@ -23,4 +25,3 @@
     SET (CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
   ENDIF(NOT APPLE)
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
-



More information about the Cmake-commits mailing list