Parcourir la source

check if policy exists before enabling it

Daniel Marth il y a 5 ans
Parent
commit
b8036d490c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -1,5 +1,7 @@
 cmake_minimum_required(VERSION 3.0.0)
-cmake_policy(SET CMP0069 NEW)
+if(POLICY CMP0069)
+  cmake_policy(SET CMP0069 NEW)
+endif()
 
 project(HDF4CPP LANGUAGES CXX)