[cmake-developers] [CMake 0014249]: dylib_compatibility_version and dylib_current_version not set for Fortran libraries
Mantis Bug Tracker
mantis at public.kitware.com
Wed Jun 26 13:27:53 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14249
======================================================================
Reported By: Graham Markall
Assigned To:
======================================================================
Project: CMake
Issue ID: 14249
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-06-26 13:27 EDT
Last Modified: 2013-06-26 13:27 EDT
======================================================================
Summary: dylib_compatibility_version and
dylib_current_version not set for Fortran libraries
Description:
When a Fortran library is linked, the compatibility and current versions are not
set. I believe (from looking at Modules/Platform/Darwin) that the compatibility
and current version flags are only set for C and C++, so when
cmMakefileLibraryTargetGenerator::AppendOSXVerFlag tries to append the flags for
Fortran, it fails because they are not found.
I was able to work around this by adding:
set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ")
to my CMakeLists.txt - but I imagine the correct behaviour would be for these to
be set when Fortran is enabled on Darwin.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-06-26 13:27 Graham Markall New Issue
======================================================================
More information about the cmake-developers
mailing list