Skip to content

Commit

Permalink
cmake: Policy CMP0115 set to OLD behavior for dlt-daemon debian packa…
Browse files Browse the repository at this point in the history
…ge (#510)

Starting in CMake 3.20, CMake prefers all source files
to have their extensions explicitly listed (.c,.cpp,etc).
To keep dlt-daemon silently built, set this Policy to OLD.

Signed-off-by: LUU QUANG MINH <[email protected]>
Co-authored-by: LUU QUANG MINH <[email protected]>
  • Loading branch information
minminlittleshrimp and LUU QUANG MINH authored Aug 2, 2023
1 parent ae20488 commit 774fe31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# For further information see http://www.covesa.org/.
#######

# Set minimum Cmake version and setup policy behavior
cmake_minimum_required(VERSION 3.3)
if(${CMAKE_VERSION} VERSION_GREATER "3.20" OR ${CMAKE_VERSION} VERSION_EQUAL "3.20")
cmake_policy(SET CMP0115 OLD)
endif()
project(automotive-dlt VERSION 2.18.9)

mark_as_advanced(CMAKE_BACKWARDS_COMPATIBILITY)
Expand Down

0 comments on commit 774fe31

Please sign in to comment.