From 3d170ccc23045c299aa803ba8c0c016012491629 Mon Sep 17 00:00:00 2001 From: Shreyas Ananthan Date: Fri, 6 Nov 2020 14:41:04 -0700 Subject: [PATCH] CMake: set CMP0074 policy explicitly to avoid warnings --- glue-codes/openfast-cpp/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glue-codes/openfast-cpp/CMakeLists.txt b/glue-codes/openfast-cpp/CMakeLists.txt index aecb5f77d3..c4dab07b42 100644 --- a/glue-codes/openfast-cpp/CMakeLists.txt +++ b/glue-codes/openfast-cpp/CMakeLists.txt @@ -14,6 +14,10 @@ # limitations under the License. # +if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0") + cmake_policy(SET CMP0074 NEW) +endif() + set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON)