mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[TOOLS]
- Add /EHsc for all C++ sources under MSVC instead of doing it per-file svn path=/trunk/; revision=73696
This commit is contained in:
parent
719936a2f1
commit
41c7ba2971
3 changed files with 2 additions and 14 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue