summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-11-28 12:01:01 +0800
committeryangwei <[email protected]>2024-11-28 13:31:56 +0800
commita81bd301ab3a4c8cdf23b822f0a847754d532228 (patch)
treec553ae79cfce90d1b244bf10398a7bc1e1fbd112 /CMakeLists.txt
parent679979a14679e21f3ce6a444db77e9769d53996f (diff)
🔧 build(ExternalProject_Add error in el8): DOWNLOAD_EXTRACT_TIMESTAMP
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6902cf..7f878dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,15 @@ set(CMAKE_C_EXTENSIONS ON)
# set warning as error
add_compile_options(-Wall -Wextra -Werror)
+
+if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24")
+ set(DOWNLOAD_TIMESTAMP_ARG DOWNLOAD_EXTRACT_TIMESTAMP ON)
+else()
+ set(DOWNLOAD_TIMESTAMP_ARG)
+endif()
+
+message(STATUS "Download timestamp arg: ${DOWNLOAD_TIMESTAMP_ARG}")
+
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Build type (default: RelWithDebInfo)" FORCE)
endif()