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