File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION ${CADABRA_CMAKE_VERSION} )
1+ # cmake_minimum_required(VERSION ${CADABRA_CMAKE_VERSION})
22project (Cadabra)
33
4+ if (POLICY CMP0167)
5+ cmake_policy (SET CMP0167 NEW)
6+ endif ()
47
58#---------------------------------------------------------------------------
69# Preamble.
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION ${CADABRA_CMAKE_VERSION} ) # Required for various macros
1+ # cmake_minimum_required(VERSION ${CADABRA_CMAKE_VERSION}) # Required for various macros
22project (Cadabra)
3-
3+ if (POLICY CMP0167)
4+ cmake_policy (SET CMP0167 NEW)
5+ endif ()
46
57#---------------------------------------------------------------------------
68# Preamble.
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION ${CADABRA_CMAKE_VERSION} )
1+ # cmake_minimum_required(VERSION ${CADABRA_CMAKE_VERSION})
22project (Cadabra)
33
44
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION ${CADABRA_CMAKE_VERSION})
22project (CadabraGtkmm)
33include (FetchContent)
44
5+ if (POLICY CMP0167)
6+ cmake_policy (SET CMP0167 NEW)
7+ endif ()
8+
59#---------------------------------------------------------------------------
610# Preamble.
711#---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ else()
208208 set (PYBIND11_INSTALL OFF )
209209endif ()
210210
211+ # KP: eventually this policy inheritance will all work, for now set set the policy by hand.
212+ if (POLICY CMP0148)
213+ cmake_policy (SET CMP0148 NEW)
214+ endif ()
215+
211216include ("${CMAKE_CURRENT_SOURCE_DIR} /tools/pybind11Common.cmake" )
212217# https://github.com/jtojnar/cmake-snips/#concatenating-paths-when-building-pkg-config-files
213218# TODO: cmake 3.20 adds the cmake_path() function, which obsoletes this snippet
You can’t perform that action at this time.
0 commit comments