[geos-commits] r2876 - trunk

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Jan 18 19:19:27 EST 2010


Author: mloskot
Date: 2010-01-18 19:19:26 -0500 (Mon, 18 Jan 2010)
New Revision: 2876

Modified:
   trunk/CMakeLists.txt
Log:
#317: compiler flags can not be handled using CMake list type, reverted last change that sneaked in with Visual Studio related commit.

Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2010-01-19 00:03:58 UTC (rev 2875)
+++ trunk/CMakeLists.txt	2010-01-19 00:19:26 UTC (rev 2876)
@@ -48,10 +48,15 @@
 
 if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
 
-  list(APPEND CMAKE_CXX_FLAGS "-pedantic -ansi")
-  list(APPEND CMAKE_CXX_FLAGS "-Wall -Wno-long-long")
-  list(APPEND CMAKE_CXX_FLAGS "-fPIC")
+  # General options
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -ansi")
 
+  # Warnings specification
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long")
+
+  # Turn on Position Independent Code generation for GEOS C shared library
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+
 elseif(MSVC)
     
   # Set pedantic mode by default



More information about the geos-commits mailing list