Browse Source

check if policy exists before enabling it

Daniel Marth 5 years ago
parent
commit
b8036d490c
1 changed files with 3 additions and 1 deletions
  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)