Explicilty set CMP0042 to NEW, which is the default anyway, to silence cmake warning on OS X

This commit is contained in:
Arne Schwabe
2016-11-01 01:19:42 +01:00
parent ff2fdacfb2
commit bbcd5c9336
+3
View File
@@ -14,6 +14,9 @@ set(SDCARD_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}V${SDCARD_REVISION})
cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0020 NEW)
cmake_policy(SET CMP0023 OLD)
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 NEW)
endif()