From: Thomas Faber Date: Sun, 5 Feb 2017 09:51:33 +0000 (+0000) Subject: [TOOLS] X-Git-Tag: ReactOS-0.4.4-CLT2017~386 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=41c7ba297117e6326ac6ab1f8f6d23810fb51883 [TOOLS] - Add /EHsc for all C++ sources under MSVC instead of doing it per-file svn path=/trunk/; revision=73696 --- diff --git a/reactos/sdk/tools/CMakeLists.txt b/reactos/sdk/tools/CMakeLists.txt index b54945cdfb6..bbcf9e78ce5 100644 --- a/reactos/sdk/tools/CMakeLists.txt +++ b/reactos/sdk/tools/CMakeLists.txt @@ -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) diff --git a/reactos/sdk/tools/hhpcomp/CMakeLists.txt b/reactos/sdk/tools/hhpcomp/CMakeLists.txt index 02e67820afc..bbe004a6319 100644 --- a/reactos/sdk/tools/hhpcomp/CMakeLists.txt +++ b/reactos/sdk/tools/hhpcomp/CMakeLists.txt @@ -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) diff --git a/reactos/sdk/tools/xml2sdb/CMakeLists.txt b/reactos/sdk/tools/xml2sdb/CMakeLists.txt index 6997c6f730e..72118641922 100644 --- a/reactos/sdk/tools/xml2sdb/CMakeLists.txt +++ b/reactos/sdk/tools/xml2sdb/CMakeLists.txt @@ -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()