fix unknown policy on older cmakes

This commit is contained in:
tamasmeszaros 2023-07-29 15:41:13 +02:00
parent 866fc767bb
commit d9f0c1a052

4
deps/CMakeLists.txt vendored
View File

@ -62,7 +62,9 @@ if (NOT _is_multi AND NOT CMAKE_BUILD_TYPE)
message(STATUS "Forcing CMAKE_BUILD_TYPE to Release as it was not specified.")
endif ()
cmake_policy(SET CMP0135 NEW)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
cmake_policy(SET CMP0135 NEW)
endif ()
function(prusaslicer_add_cmake_project projectname)
cmake_parse_arguments(P_ARGS "" "INSTALL_DIR;BUILD_COMMAND;INSTALL_COMMAND" "CMAKE_ARGS" ${ARGN})