Fix cmake warning on policy CMP0135 (#7247)

This commit is contained in:
Dima Buzdyk 2024-11-11 22:24:54 +06:00 committed by GitHub
parent 917a8fe477
commit 2e017a73cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

8
deps/CMakeLists.txt vendored
View file

@ -30,6 +30,10 @@ if (APPLE)
endif ()
if(POLICY CMP0135) # DOWNLOAD_EXTRACT_TIMESTAMP
cmake_policy(SET CMP0135 NEW)
endif()
project(OrcaSlicer-deps)
include(ExternalProject)
@ -56,10 +60,6 @@ endif ()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
option(DEP_WX_GTK3 "Build wxWidgets against GTK3" OFF)
else()
if(POLICY CMP0135) # DOWNLOAD_EXTRACT_TIMESTAMP
cmake_policy(SET CMP0135 NEW)
endif()
endif()
set(IS_CROSS_COMPILE FALSE)