[TOOLS]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 4 Sep 2015 15:22:16 +0000 (15:22 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 4 Sep 2015 15:22:16 +0000 (15:22 +0000)
- Fix MSVC warnings for C++ host-tools

svn path=/trunk/; revision=68998

reactos/tools/CMakeLists.txt
reactos/tools/hhpcomp/CMakeLists.txt

index 1c886e8..56f09b1 100644 (file)
@@ -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)
index bbe004a..02e6782 100644 (file)
@@ -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)