[QGIS Commit] r9941 - branches/Version-1_0

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jan 7 17:51:09 EST 2009


Author: timlinux
Date: 2009-01-07 17:51:09 -0500 (Wed, 07 Jan 2009)
New Revision: 9941

Modified:
   branches/Version-1_0/CMakeLists.txt
Log:
Suppress cmake warnings in cmake 2.6

Modified: branches/Version-1_0/CMakeLists.txt
===================================================================
--- branches/Version-1_0/CMakeLists.txt	2009-01-07 20:44:04 UTC (rev 9940)
+++ branches/Version-1_0/CMakeLists.txt	2009-01-07 22:51:09 UTC (rev 9941)
@@ -1,3 +1,4 @@
+
 SET(CPACK_PACKAGE_VERSION_MAJOR "1")
 SET(CPACK_PACKAGE_VERSION_MINOR "0")
 SET(CPACK_PACKAGE_VERSION_PATCH "0")
@@ -253,6 +254,14 @@
 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