Author: tfaber
Date: Fri Sep  4 15:22:16 2015
New Revision: 68998

URL: http://svn.reactos.org/svn/reactos?rev=68998&view=rev
Log:
[TOOLS]
- Fix MSVC warnings for C++ host-tools

Modified:
    trunk/reactos/tools/CMakeLists.txt
    trunk/reactos/tools/hhpcomp/CMakeLists.txt

Modified: trunk/reactos/tools/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/CMakeLists.txt?rev=68998&r1=68997&r2=68998&view=diff
==============================================================================
--- trunk/reactos/tools/CMakeLists.txt  [iso-8859-1] (original)
+++ trunk/reactos/tools/CMakeLists.txt  [iso-8859-1] Fri Sep  4 15:22:16 2015
@@ -11,6 +11,10 @@
 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)

Modified: trunk/reactos/tools/hhpcomp/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/hhpcomp/CMakeLists.txt?rev=68998&r1=68997&r2=68998&view=diff
==============================================================================
--- trunk/reactos/tools/hhpcomp/CMakeLists.txt  [iso-8859-1] (original)
+++ trunk/reactos/tools/hhpcomp/CMakeLists.txt  [iso-8859-1] Fri Sep  4 
15:22:16 2015
@@ -12,5 +12,13 @@
 # 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)


Reply via email to