Skip to content

Commit

Permalink
cmake: keep cmake silent with higher version
Browse files Browse the repository at this point in the history
Current Github action sets environment to ubuntu-latest,
or ubuntu 22.04, the cmake version here is greater than 3.20.
To make the config phase less annoying with policy warning,
bound the version required.

Signed-off-by: LUU QUANG MINH <Minh.LuuQuang@vn.bosch.com>
  • Loading branch information
LUU QUANG MINH authored and LUU QUANG MINH committed Aug 12, 2023
1 parent a7dad01 commit 79906e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#######

# Set minimum Cmake version and setup policy behavior
cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.3..3.26)
if(${CMAKE_VERSION} VERSION_GREATER "3.20" OR ${CMAKE_VERSION} VERSION_EQUAL "3.20")
cmake_policy(SET CMP0115 OLD)
endif()
Expand Down

0 comments on commit 79906e2

Please sign in to comment.