[cmake-developers] [CMake 0013918]: enable_language() sets CMAKE_<lang>_COMPILER_LOADED in local scope
Mantis Bug Tracker
mantis at public.kitware.com
Thu Feb 14 04:41:29 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13918
======================================================================
Reported By: Petr Kmoch
Assigned To:
======================================================================
Project: CMake
Issue ID: 13918
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-02-14 10:41 CET
Last Modified: 2013-02-14 10:41 CET
======================================================================
Summary: enable_language() sets CMAKE_<lang>_COMPILER_LOADED
in local scope
Description:
When enable_language(<lang>) is called within a function, it sets the variable
CMAKE_<lang>_COMPILER_LOADED within the scope of that function only. This
behaviour is rather unexpected, or at least not mentioned in the documentation.
Steps to Reproduce:
Run CMake on the attached CMakeList.
Expected output:
-- C was loaded
-- C reports as loaded
Actual output:
-- C was loaded
-- C reports as not loaded
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-02-14 10:41 Petr Kmoch New Issue
2013-02-14 10:41 Petr Kmoch File Added: CMakeLists.txt
======================================================================
More information about the cmake-developers
mailing list