Skip to content

Commit 2fc0216

Browse files
author
timlinux
committedJan 7, 2009
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
1 parent da7cded commit 2fc0216

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
23
SET(CPACK_PACKAGE_VERSION_MINOR "0")
34
SET(CPACK_PACKAGE_VERSION_PATCH "0")
@@ -253,6 +254,14 @@ ELSE (WIN32)
253254
ENDIF (WIN32)
254255

255256

257+
#assume we have excaped compiler directives
258+
#eventually we want to change this to new
259+
#since we dont need to jump through so many
260+
#hoops to escape compiler directives then
261+
IF(COMMAND cmake_policy)
262+
cmake_policy(SET CMP0003 NEW)
263+
cmake_policy(SET CMP0005 OLD)
264+
ENDIF(COMMAND cmake_policy)
256265
IF (WIN32)
257266
# expect that classes are being imported
258267
# Note: MSVC doesn't like when the macros are quotes

0 commit comments

Comments
 (0)
Please sign in to comment.