[QGIS Commit] r9942 - trunk/qgis

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jan 7 17:54:16 EST 2009


Author: timlinux
Date: 2009-01-07 17:54:16 -0500 (Wed, 07 Jan 2009)
New Revision: 9942

Modified:
   trunk/qgis/CMakeLists.txt
Log:
Suppress cmake warnings in cmake 2.6

Modified: trunk/qgis/CMakeLists.txt
===================================================================
--- trunk/qgis/CMakeLists.txt	2009-01-07 22:51:09 UTC (rev 9941)
+++ trunk/qgis/CMakeLists.txt	2009-01-07 22:54:16 UTC (rev 9942)
@@ -253,6 +253,15 @@
 ENDIF (WIN32)
 
 
+#assume we have excaped compiler directives
+#eventually we want to change this to new
+#since we dont need to jump through so many 
+#hoops to escape compiler directives then
+IF(COMMAND cmake_policy)
+  cmake_policy(SET CMP0003 NEW)
+  cmake_policy(SET CMP0005 OLD)
+ENDIF(COMMAND cmake_policy)
+
 IF (WIN32)
   # expect that classes are being imported
   # Note: MSVC doesn't like when the macros are quotes



More information about the QGIS-commit mailing list