Skip to content

Commit

Permalink
Set CMake policies for 3.30
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Sep 24, 2024
1 parent e8e99f5 commit 949989d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
cmake_minimum_required(VERSION 3.15) # pkg_search_module GLOBAL
cmake_policy(VERSION 3.15...3.28)

if(POLICY CMP0074)
# Use package_ROOT environment variables
cmake_policy(SET CMP0074 NEW)
endif(POLICY CMP0074)
cmake_policy(VERSION 3.15...3.30)

project(parpe)

Expand Down
8 changes: 2 additions & 6 deletions templates/CMakeLists.template.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
cmake_minimum_required(VERSION 3.3)

if(POLICY CMP0074)
# Use package_ROOT environment variables
cmake_policy(SET CMP0074 NEW)
endif(POLICY CMP0074)
cmake_minimum_required(VERSION 3.15)
cmake_policy(VERSION 3.15...3.30)

set(default_build_type "RelWithDebInfo")

Expand Down

0 comments on commit 949989d

Please sign in to comment.