[cmake-developers] [CMake 0014102]: CHECK_C_COMPILER_FLAG does not work on non-English locales
Mantis Bug Tracker
mantis at public.kitware.com
Sun Apr 21 04:06:41 EDT 2013
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
======================================================================
More information about the cmake-developers
mailing list