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 ====================================================================== -- 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
