diff --git a/cmake/modules/lcgsoft-macros.cmake b/cmake/modules/lcgsoft-macros.cmake index eea189ce11ebdde0f19f1b6fb048515a66264d03..a85030bec9b9ec433350846cc24f2889240c6bee 100644 --- a/cmake/modules/lcgsoft-macros.cmake +++ b/cmake/modules/lcgsoft-macros.cmake @@ -464,7 +464,13 @@ macro(LCGPackage_Add name) #---Compile information needed for the build description file (installed alongside version.txt) - set(buildinfostring " COMPILER: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION},") + # Change version of compiler adding fp suffix if it contains "fp" in version + if ( "${CMAKE_CXX_COMPILER}" MATCHES ".*${CMAKE_CXX_COMPILER_VERSION}.fp.*" ) + set(buildinfostring " COMPILER: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}.fp,") + else() + set(buildinfostring " COMPILER: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION},") + endif() + site_name(hostname) set(buildinfostring "${buildinfostring} HOSTNAME: ${hostname},") set(buildinfostring "${buildinfostring} GITHASH: ${lcgcmakerevision},")