Try disabling CMP00037 regardless of CMake version

This commit is contained in:
Mahmoud Al-Qudsi 2021-03-21 22:42:09 -05:00 committed by Johannes Altmanninger
parent aa25c4eccc
commit 1fd92f493a

View file

@ -26,7 +26,7 @@ endif()
# Set a policy so CMake stops complaining when we use the target name "test" # Set a policy so CMake stops complaining when we use the target name "test"
cmake_policy(PUSH) cmake_policy(PUSH)
if(${CMAKE_VERSION} VERSION_LESS 3.11.0 AND POLICY CMP0037) if(POLICY CMP0037)
cmake_policy(SET CMP0037 OLD) cmake_policy(SET CMP0037 OLD)
endif() endif()
add_custom_target(test add_custom_target(test