[Cmake] SunOS + gcc
Mathieu Malaterre
Mathieu . Malaterre at creatis . insa-lyon . fr
Fri, 14 Nov 2003 10:25:46 +0100
Here is a patch for SunOS + gcc. Otherwise Debug build wouldn't take
into account '-g'.
mathieu
Index: SunOS.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/SunOS.cmake,v
retrieving revision 1.8
diff -u -r1.8 SunOS.cmake
--- SunOS.cmake 27 Mar 2003 18:03:30 -0000 1.8
+++ SunOS.cmake 14 Nov 2003 09:20:07 -0000
@@ -21,6 +21,7 @@
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_COMPILER_IS_GNUCXX)
+ INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC")
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-R")