CMake (MSVC): cmake automatically adds the /EHsc and /GR compiler
authorOscar Fuentes <ofv@wanadoo.es>
Fri, 31 Dec 2010 19:10:49 +0000 (19:10 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Fri, 31 Dec 2010 19:10:49 +0000 (19:10 +0000)
commit023c63351ec78d88c1b3bd600cbcab56838769ae
tree767334a8dbefc784812fdc9d46bda0d37a2d4fb2
parent8a3d29cf1064e8efbb8c8d5d4653ad147c7b037e
CMake (MSVC): cmake automatically adds the /EHsc and /GR compiler
options. If we are building with exceptions/rtti disabled, we replace
/EHsc with /EHs-c- and /GR with /GR-, respectively. If we just add the
disabling options we get warnings like this:

cl : Command line warning D9025 : overriding '/EHs' with '/EHs-'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122648 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/LLVMProcessSources.cmake