Explorar el Código

check if policy exists before enabling it

Daniel Marth hace 5 años
padre
commit
b8036d490c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)