From ddfbce11a3f9b1824a9ed98fd3297a8e596e0090 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 4 Sep 2015 15:22:16 +0000 Subject: [PATCH] [TOOLS] - Fix MSVC warnings for C++ host-tools svn path=/trunk/; revision=68998 --- reactos/tools/CMakeLists.txt | 4 ++++ reactos/tools/hhpcomp/CMakeLists.txt | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/reactos/tools/CMakeLists.txt b/reactos/tools/CMakeLists.txt index 1c886e8061c..56f09b11646 100644 --- a/reactos/tools/CMakeLists.txt +++ b/reactos/tools/CMakeLists.txt @@ -11,6 +11,10 @@ add_executable(geninc geninc/geninc.c) add_executable(mkshelllink mkshelllink/mkshelllink.c) add_executable(obj2bin obj2bin/obj2bin.c) add_executable(spec2def spec2def/spec2def.c) + +if(MSVC) + set_property(SOURCE utf16le/utf16le.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " /EHsc") +endif() add_executable(utf16le utf16le/utf16le.cpp) add_subdirectory(cabman) diff --git a/reactos/tools/hhpcomp/CMakeLists.txt b/reactos/tools/hhpcomp/CMakeLists.txt index bbe004a6319..02e67820afc 100644 --- a/reactos/tools/hhpcomp/CMakeLists.txt +++ b/reactos/tools/hhpcomp/CMakeLists.txt @@ -12,5 +12,13 @@ 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)