Skip to content

Commit

Permalink
cmake: enable all CMake policies up to version 3.31
Browse files Browse the repository at this point in the history
  • Loading branch information
riebl committed Jan 12, 2025
1 parent eec63df commit bf922b8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
cmake_minimum_required(VERSION 3.12)
cmake_policy(VERSION 3.12...3.27)
cmake_policy(VERSION 3.12...3.31)
project(Vanetza VERSION 24.10)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

# enable convenient CMake policies if available
if(POLICY CMP0074)
# find_package() employs <package>_ROOT (since CMake 3.12)
cmake_policy(SET CMP0074 NEW)
endif()
if(POLICY CMP0077)
# option() honours normal variable (since CMake 3.13)
cmake_policy(SET CMP0077 NEW)
endif()

# Vanetza makes extensive use of C++11
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
Expand Down

0 comments on commit bf922b8

Please sign in to comment.