[cmake-developers] [CMake 0013561]: CHECK_CXX_COMPILER_FLAGS is totally broken under newer version of Visual Studio
Mantis Bug Tracker
mantis at public.kitware.com
Fri Sep 28 02:17:53 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13561
======================================================================
Reported By: icando
Assigned To:
======================================================================
Project: CMake
Issue ID: 13561
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2012-09-28 02:17 EDT
Last Modified: 2012-09-28 02:17 EDT
======================================================================
Summary: CHECK_CXX_COMPILER_FLAGS is totally broken under
newer version of Visual Studio
Description:
On Windows platform, by default, CMake will add /INCREMENTAL:YES to the linker
flag. This will trigger warning messages by the linker of MSVC, and
CHECK_CXX_COMPILER_FLAGS will think the compiler doesn't accept the flag. So
basically, CHECK_CXX_COMPILER_FLAGS will just return FAlSE for any flag, valid
or invalid. Any scripts that relies on this check will just broken.
Steps to Reproduce:
Just use any valid flag in CHECK_CXX_COMPILER_FLAGS on Windows platform and
Visual Studio 2012. Earlier versions might also be broken because when I was
searching in Google, I just found some people complaining about it for Visual
Studio 2010 as well.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-09-28 02:17 icando New Issue
======================================================================
More information about the cmake-developers
mailing list