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)