From 77adb27cb9290479152c826363e7c857bf852458 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 15 Nov 2021 16:25:51 +0100 Subject: [PATCH] Use _ROOT variables if possible --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33b06ef..05f4aa0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,12 @@ add_executable(ovni2prv parson.c ) +# Use _ROOT variables if available, commonly used by MPI +# installations +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + find_package(MPI REQUIRED) add_executable(ovnisync ovnisync.c) target_include_directories(ovnisync PRIVATE ${MPI_C_INCLUDE_PATH})