Problem 2002

Summary: Geant4Config.cmake should not set CMAKE_CXX_EXTENSIONS
Product: Geant4 Reporter: Dennis Klein <d.klein>
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 10.3   
Hardware: All   
OS: All   

Description Dennis Klein 2017-09-06 12:24:38 CEST
Dear Geant4 team,

when integrating Geant4 via its Geant4Config.cmake into our project, it sets the CMAKE_CXX_EXTENSIONS option to OFF. This is a global cmake option and should in my opinion not be set by an included dependency. I propose to prefix the variable with Geant4_ as done with all the other variables. So, the user can decide whether to apply this setting.

Best regards,
Dennis
Comment 1 Ben Morgan 2018-11-06 10:06:40 CET
Apologies for the delay in this. We're looking at this in relation to a larger review of compiler flags required (rather than recommended) for use when compiling/linking Geant4 libraries.
Comment 2 Ben Morgan 2019-07-08 11:18:47 CEST
This is now fixed on master, so will be in the next 10.6 release, plus patches.