Browse Source

Fix unknown policy errors introduces in last release

Moritz Wanzenböck 5 years ago
parent
commit
c4a9261ece
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)