Suppress cmake warnings in cmake 2.6

git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@9941 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2009-01-07 22:51:09 +00:00
parent da7cded538
commit 2fc0216277

View File

@ -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 @@ ELSE (WIN32)
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