- Add /EHsc for all C++ sources under MSVC instead of doing it per-file

svn path=/trunk/; revision=73696
This commit is contained in:
Thomas Faber 2017-02-05 09:51:33 +00:00
parent 719936a2f1
commit 41c7ba2971
3 changed files with 2 additions and 14 deletions

View file

@ -10,6 +10,7 @@ endfunction()
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_compile_flags_language("/EHsc" "CXX")
endif()
add_host_tool(bin2c bin2c.c)
@ -19,9 +20,6 @@ add_host_tool(mkshelllink mkshelllink/mkshelllink.c)
add_host_tool(obj2bin obj2bin/obj2bin.c)
add_host_tool(spec2def spec2def/spec2def.c)
if(MSVC)
set_property(SOURCE utf16le/utf16le.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " /EHsc")
endif()
add_host_tool(utf16le utf16le/utf16le.cpp)
add_subdirectory(cabman)

View file

@ -12,13 +12,5 @@ list(APPEND SOURCE
# used by lzx_compress
add_definitions(-DNONSLIDE)
if(MSVC)
set_property(SOURCE
hhpcomp.cpp
hhp_reader.cpp
utils.cpp
APPEND_STRING PROPERTY COMPILE_FLAGS " /EHsc")
endif()
add_executable(hhpcomp ${SOURCE})
target_link_libraries(hhpcomp)

View file

@ -11,8 +11,6 @@ list(APPEND SOURCE
include_directories(${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp)
add_host_tool(xml2sdb ${SOURCE})
if(MSVC)
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS " /EHsc")
else()
if(NOT MSVC)
add_target_compile_flags(xml2sdb "-fshort-wchar")
endif()