[cmake-developers] [CMake 0016039]: if( languages MATCHES c) always true for pure Fortran projects

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 30 15:05:09 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16039 
====================================================================== 
Reported By:                Melven Roehrig-Zoellner
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16039
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-30 21:05 CEST
Last Modified:              2016-03-30 21:05 CEST
====================================================================== 
Summary:                    if( languages MATCHES c) always true for pure
Fortran projects
Description: 
A lot of Modules (for example findBLAS.cmake, findLAPACK.cmake) do checks of the
form:

get_property( _LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES )
if( _LANGUAGES_ MATCHES C )
...

Even in pure Fortran projects this is always true on windows systems as the RC
language is added automatically (and Fortran;RC MATCHES C).

Steps to Reproduce: 
Create a pure Fortran project and call find_package(LAPACK).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-30 21:05 Melven Roehrig-ZoellnerNew Issue                               
    
======================================================================



More information about the cmake-developers mailing list