View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0016039 | CMake | CMake | public | 2016-03-30 15:05 | 2016-06-10 14:21 | ||||
Reporter | Melven Roehrig-Zoellner | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | Windows | OS Version | ||||||
Product Version | CMake 3.5 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0016039: 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). | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0040770) Ben Boeckel (developer) 2016-03-30 15:51 |
That kind of check is wrong and should instead use list(FIND) to see if the language is enabled. |
(0040771) Melven Roehrig-Zoellner (reporter) 2016-03-30 16:14 |
Ok, then this is just a bug in FindBLAS.cmake and FindLAPACK.cmake... |
(0040772) Ben Boeckel (developer) 2016-03-30 16:30 |
Hrm, would seem so. I'll try out a patch here. |
(0040789) Melven Roehrig-Zoellner (reporter) 2016-04-01 08:46 |
I've sent a patch to the developers Mailing list; I hope we didn't do the same work twice... |
(0040797) Rolf Eike Beer (developer) 2016-04-01 11:27 |
cmake --help-variable 'CMAKE_<LANG>_COMPILER_LOADED' -> if (CMAKE_Fortran_COMPILER_LOADED) |
(0040813) Brad King (manager) 2016-04-05 10:03 |
Find{BLAS,LAPACK}: Fix when used in pure Fortran projects https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1694112d [^] |
(0041201) Kitware Robot (administrator) 2016-06-10 14:21 |
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2016-03-30 15:05 | Melven Roehrig-Zoellner | New Issue | |
2016-03-30 15:51 | Ben Boeckel | Note Added: 0040770 | |
2016-03-30 16:14 | Melven Roehrig-Zoellner | Note Added: 0040771 | |
2016-03-30 16:30 | Ben Boeckel | Note Added: 0040772 | |
2016-04-01 08:46 | Melven Roehrig-Zoellner | Note Added: 0040789 | |
2016-04-01 11:27 | Rolf Eike Beer | Note Added: 0040797 | |
2016-04-01 11:27 | Rolf Eike Beer | Severity | major => minor |
2016-04-01 11:27 | Rolf Eike Beer | Status | new => resolved |
2016-04-01 11:27 | Rolf Eike Beer | Resolution | open => no change required |
2016-04-05 10:03 | Brad King | Note Added: 0040813 | |
2016-06-10 14:21 | Kitware Robot | Note Added: 0041201 | |
2016-06-10 14:21 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |