diff --git a/CMakeLists.txt b/CMakeLists.txt index 61c29ca041f6bf897b0ed5dd7832b1e810c42071..f4806ed54e81f40fc527f2278574de27e6a22a7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR) project(openfpm_pdata LANGUAGES C CXX) -cmake_policy(SET CMP0074 OLD) +if (POLICY CMP0074) + cmake_policy(SET CMP0074 OLD) +endif () enable_testing()