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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
