Skip to content
Snippets Groups Projects
Commit c8aad18c authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMakeLIsts.txt + comment to explain CMP0177 OLD

parent 40276d84
No related branches found
No related tags found
1 merge request!2836Add comments to explain OLD policies 0167 and 0177.
Pipeline #186085 passed
......@@ -6,13 +6,21 @@
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
if (CMAKE_VERSION GREATER_EQUAL 3.30)
cmake_policy(SET CMP0167 OLD)
cmake_policy(SET CMP0167 OLD)
# Old policy uses FindBoost.cmake provided by CMake, which is deprecated.
# New policy uses BoostConfig.cmake provided by Boost. It returns targets
# Boost::ProgramOptions etc instead of library paths. We still have to find
# out how replace the configure_file command in MakePythonWheel.cmake.
# See https://jugit.fz-juelich.de/mlz/bornagain/-/issues/1074.
endif()
if (CMAKE_VERSION GREATER_EQUAL 3.31)
cmake_policy(SET CMP0175 NEW)
cmake_policy(SET CMP0175 NEW)
endif()
if (CMAKE_VERSION GREATER_EQUAL 3.31)
cmake_policy(SET CMP0177 OLD)
cmake_policy(SET CMP0177 OLD)
# New behavior, introduced in CMake 3.31, normalizes all DESTINATION values
# given in any form of the install() command.
# Conversion to NEW behavior postponed until we require CMake >= 3.31.
endif()
set(CMAKE_MODULE_PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment