From 1fd92f493a546aa765c5b3c4bcb4a8fce24e5230 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 21 Mar 2021 22:42:09 -0500 Subject: [PATCH] Try disabling CMP00037 regardless of CMake version --- cmake/Tests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Tests.cmake b/cmake/Tests.cmake index a9cc6428f..bc170dbd7 100644 --- a/cmake/Tests.cmake +++ b/cmake/Tests.cmake @@ -26,7 +26,7 @@ endif() # Set a policy so CMake stops complaining when we use the target name "test" cmake_policy(PUSH) -if(${CMAKE_VERSION} VERSION_LESS 3.11.0 AND POLICY CMP0037) +if(POLICY CMP0037) cmake_policy(SET CMP0037 OLD) endif() add_custom_target(test