Do not override LHCb compilation flags
Compare changes
+ 21
− 2
@@ -21,8 +21,8 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
@@ -43,6 +43,25 @@ set(CMAKE_MODULE_PATH
Geant4 default configuration overrides compiler flags between the load of CMAKE_TOOLCHAIN_FILE
and the test compilations CMake runs to validate the compiler.
This is not a major issue with gcc (apart from using options we do not expect), but it causes the configuration failure of clang because it overrides the mandatory option --gcc-toolchain=...
that we set in the CMAKE_TOOLCHAIN_FILE
.
This MR prevents Geant4 to overrides our settings.
Closes #3 (closed)