Skip to content
Snippets Groups Projects
Commit c5c160a9 authored by Benjamin Morgan's avatar Benjamin Morgan
Browse files

Use CMake version range to support LTO builds

Use of CMake's LTO support requires version 3.9 or newer and the
CMP0069 policy. As Geant4 10.6.3 only sets a minimum version of
3.8, LTO builds will never be enabled as the policy is never set.

Bump version range to 3.8...3.27 to allow LTO builds when a suitable
CMake version is used to build Geant4.
parent 4e7fc4ea
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ endif()
#-----------------------------------------------------------------------
# - Define CMake requirements and override make rules as needed
#
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
cmake_minimum_required(VERSION 3.8...3.27 FATAL_ERROR)
# - Any policy requirements should go here
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment