diff options
| author | yangwei <[email protected]> | 2024-11-28 12:01:01 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-11-28 13:31:56 +0800 |
| commit | a81bd301ab3a4c8cdf23b822f0a847754d532228 (patch) | |
| tree | c553ae79cfce90d1b244bf10398a7bc1e1fbd112 /CMakeLists.txt | |
| parent | 679979a14679e21f3ce6a444db77e9769d53996f (diff) | |
🔧 build(ExternalProject_Add error in el8): DOWNLOAD_EXTRACT_TIMESTAMP
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
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() |
