Skip to content

Commit 2e017a7

Browse files
authoredNov 11, 2024
Fix cmake warning on policy CMP0135 (SoftFever#7247)
1 parent 917a8fe commit 2e017a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎deps/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ if (APPLE)
3030

3131
endif ()
3232

33+
if(POLICY CMP0135) # DOWNLOAD_EXTRACT_TIMESTAMP
34+
cmake_policy(SET CMP0135 NEW)
35+
endif()
36+
3337
project(OrcaSlicer-deps)
3438

3539
include(ExternalProject)
@@ -56,10 +60,6 @@ endif ()
5660

5761
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
5862
option(DEP_WX_GTK3 "Build wxWidgets against GTK3" OFF)
59-
else()
60-
if(POLICY CMP0135) # DOWNLOAD_EXTRACT_TIMESTAMP
61-
cmake_policy(SET CMP0135 NEW)
62-
endif()
6363
endif()
6464

6565
set(IS_CROSS_COMPILE FALSE)

0 commit comments

Comments
 (0)
Please sign in to comment.