Author: tfaber
Date: Sun Feb 5 09:51:33 2017
New Revision: 73696
URL:
http://svn.reactos.org/svn/reactos?rev=73696&view=rev
Log:
[TOOLS]
- Add /EHsc for all C++ sources under MSVC instead of doing it per-file
Modified:
trunk/reactos/sdk/tools/CMakeLists.txt
trunk/reactos/sdk/tools/hhpcomp/CMakeLists.txt
trunk/reactos/sdk/tools/xml2sdb/CMakeLists.txt
Modified: trunk/reactos/sdk/tools/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/CMakeLists.txt?r…
==============================================================================
--- trunk/reactos/sdk/tools/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/CMakeLists.txt [iso-8859-1] Sun Feb 5 09:51:33 2017
@@ -10,6 +10,7 @@
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(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)
Modified: trunk/reactos/sdk/tools/hhpcomp/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/hhpcomp/CMakeLis…
==============================================================================
--- trunk/reactos/sdk/tools/hhpcomp/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/hhpcomp/CMakeLists.txt [iso-8859-1] Sun Feb 5 09:51:33 2017
@@ -12,13 +12,5 @@
# 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)
Modified: trunk/reactos/sdk/tools/xml2sdb/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/xml2sdb/CMakeLis…
==============================================================================
--- trunk/reactos/sdk/tools/xml2sdb/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/sdk/tools/xml2sdb/CMakeLists.txt [iso-8859-1] Sun Feb 5 09:51:33 2017
@@ -11,8 +11,6 @@
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()