MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014149 | CMake | CMake | public | 2013-05-16 10:42 | 2013-10-07 10:09 |
Reporter | Daniel Raviart | ||||
Assigned To | |||||
Priority | urgent | Severity | block | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Windows | OS | 7 | OS Version | 7 64bits |
Product Version | CMake 2.8.10.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014149: /EHsc flag cannot be removed from CMAKE_CXX_FLAGS for Visual Studio 2010 | ||||
Description | CMake 2.8.11-rc2 I tried several ways to remove the exception handling /EHsc flag from the cache. 1 - string(REPLACE "/EHsc" "/EHs-c-" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 2 - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" FORCE ) 3 - set( CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /GR" ) After each try, the variable is still the same in the cache: //Flags used by the compiler during all build types. CMAKE_CXX_FLAGS:STRING= /DWIN32 /D_WINDOWS /W3 /GR /EHsc I am unable to remove the /EHsc flag. I saw that this bug was reported here: http://www.cmake.org/pipermail/cmake/2010-December/041638.html [^] It is said that: "This is because cmake automatically adds /EHsc to the command line options." If this is true, how do we do to remove this option? Thanks in advance. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-05-16 10:42 | Daniel Raviart | New Issue | |||
2013-05-16 11:29 | Daniel Raviart | Note Added: 0033059 | |||
2013-05-16 12:58 | Brad King | Note Added: 0033068 | |||
2013-05-16 12:58 | Brad King | Status | new => resolved | ||
2013-05-16 12:58 | Brad King | Resolution | open => no change required | ||
2013-10-07 10:09 | Robert Maynard | Note Added: 0034049 | |||
2013-10-07 10:09 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|