---------- Forwarded message ----------
From: John Drescher <[email protected]>
Date: Fri, Dec 31, 2010 at 9:42 AM
Subject: Re: [CMake] Disabling exceptions and rtti on VS
To: Óscar Fuentes <[email protected]>


On Fri, Dec 31, 2010 at 9:27 AM, Óscar Fuentes <[email protected]> wrote:
> If /EHs- /EHs-c- are added with add_definitions, the output of the build
> contains warnings:
>
> cl : Command line warning D9025 : overriding '/EHs' with '/EHs-'
> cl : Command line warning D9025 : overriding '/EHc' with '/EHc-'
>
> This is because cmake automatically adds /EHsc to the command line
> options.
>
> How can I remove /EHsc from the command line options before adding
> /EHs-c- ?
>

I make changes to these by setting CMAKE_CXX_FLAGS
Here is an example I have in one of my projects:

SET(CMAKE_CXX_FLAGS "/WL /MP /GR /EHa" )

John



-- 
John M. Drescher
_______________________________________________
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://www.cmake.org/mailman/listinfo/cmake

Reply via email to