Commit 22d4fbeb authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Define CMake policy list, like it is done in 10.6+

Makes easier to add new policy to the list, and merge to newer versions-
parent 40b3525f
...@@ -31,22 +31,11 @@ ENDIF() ...@@ -31,22 +31,11 @@ ENDIF()
# in RPM's: # in RPM's:
#set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true") #set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true")
FOREACH(p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0075 CMP0069 CMP0135)
IF(POLICY CMP0022) IF(POLICY ${p})
CMAKE_POLICY(SET CMP0022 NEW) CMAKE_POLICY(SET ${p} NEW)
ENDIF() ENDIF()
IF(POLICY CMP0048) ENDFOREACH()
CMAKE_POLICY(SET CMP0048 NEW)
ENDIF()
IF(POLICY CMP0054)
CMAKE_POLICY(SET CMP0054 NEW)
ENDIF()
IF(POLICY CMP0075)
CMAKE_POLICY(SET CMP0075 NEW)
ENDIF()
IF(POLICY CMP0069)
CMAKE_POLICY(SET CMP0069 NEW)
ENDIF()
PROJECT(MySQL) PROJECT(MySQL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment