From 2e017a73cf99f9a5cc88b54ee856a03e8229de0b Mon Sep 17 00:00:00 2001 From: Dima Buzdyk <46728448+buzzhuzz@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:24:54 +0600 Subject: [PATCH] Fix cmake warning on policy CMP0135 (#7247) --- deps/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 4bd3470d4..88915369f 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -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)