The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=14102 ====================================================================== Reported By: Marco Nolden Assigned To: ====================================================================== Project: CMake Issue ID: 14102 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2013-04-21 04:06 EDT Last Modified: 2013-04-21 04:06 EDT ====================================================================== Summary: CHECK_C_COMPILER_FLAG does not work on non-English locales Description: The regular expressions that are used in
CHECK_C_COMPILER_FLAG only work for an English or C locale. On a German localized system e.g. the gcc warning is not recognized if you pass a C++ option like "-fvisibility-inlines-hidden" to gcc. I think there are two options: 1. add some code to switch the locale before the test, like it is done in CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake 2. try if -Werror or an equivalent is accepted first and then pass it together with the option that should actually be tested ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-04-21 04:06 Marco Nolden 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
