XL/Fortran: CMake is failing to report the 'tweak' compiler version field
CMake is failing to report the 'tweak' field in the CMAKE_Fortran_COMPILER_VERSION for IBM XLF.
Test cmake file:
set(CMAKE_C_COMPILER "xlc" CACHE PATH "")
set(CMAKE_CXX_COMPILER "xlc++" CACHE PATH "")
set(CMAKE_Fortran_COMPILER "xlf90" CACHE PATH "")
enable_language(C CXX Fortran)
project(FOO)
Output:
-- The C compiler identification is XLClang 16.1.1.9
-- The CXX compiler identification is XLClang 16.1.1.9
-- The Fortran compiler identification is XL 16.1.1
Desired output:
-- The C compiler identification is XLClang 16.1.1.9
-- The CXX compiler identification is XLClang 16.1.1.9
-- The Fortran compiler identification is XL 16.1.1.9
Example of ELF from executable:
readelf -p .comment test_executable
String dump of section '.comment':
[ 50f] IBM XL Fortran for Linux, V16.1.1 (5725-C75, 5765-J15) Version 16.01.0001.0009
Is it possible CMake is using the 'VX.X.X' portion instead of the 'Version X.X.X.X' portion?
Edited by Brad King