Skip to content

Commit

Permalink
Update CMakeLists.txt (#531)
Browse files Browse the repository at this point in the history
Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24 and newer
  • Loading branch information
Spongman authored Jun 19, 2023
1 parent 9f9fb07 commit 386150b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ project(Bear
LANGUAGES C CXX
)

# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()

option(ENABLE_UNIT_TESTS "Build and run unit test for this project" ON)
option(ENABLE_FUNC_TESTS "Build and run functional test for this project" ON)
option(ENABLE_MULTILIB "Enable to build with multilib support" OFF)
Expand Down

0 comments on commit 386150b

Please sign in to comment.