mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 16:55:53 +08:00
fix unknown policy on older cmakes
This commit is contained in:
parent
866fc767bb
commit
d9f0c1a052
4
deps/CMakeLists.txt
vendored
4
deps/CMakeLists.txt
vendored
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user