Try to set CMP0048 to NEW as we do not use VERSION

This commit is contained in:
Markus Blatt
2020-04-02 22:23:15 +02:00
parent eb22f6cfd9
commit 8816549f2f

View File

@@ -22,11 +22,13 @@
# config files
macro(OpmSetPolicies)
if (POLICY CMP0026)
# Needed as we query LOCATION in OpmCompile.cmake and OpmSatellites.cmake
cmake_policy(SET CMP0026 OLD)
endif()
if (POLICY CMP0048)
cmake_policy(SET CMP0048 OLD)
# We do not set version. Hence NEW should work and this can be removed later
cmake_policy(SET CMP0048 NEW)
endif()
if(POLICY CMP0064)