Set some cmake policies to avoid warnings on newer cmake

This commit is contained in:
Nyall Dawson 2023-07-26 16:19:19 +10:00
parent 96e7047a1f
commit a4f7d1bf89

View File

@ -10,6 +10,11 @@ cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0053 NEW)
cmake_policy(SET CMP0071 NEW)
cmake_policy(SET CMP0094 NEW)
if(NOT "${CMAKE_VERSION}" VERSION_LESS "3.27")
cmake_policy(SET CMP0144 NEW)
# include(Dart) still used, as is the "Experimental" target
cmake_policy(SET CMP0145 OLD)
endif()
# don't relink it only the shared object changes
set(CMAKE_LINK_DEPENDS_NO_SHARED ON)