- Fix MSVC warnings for C++ host-tools

svn path=/trunk/; revision=68998
This commit is contained in:
Thomas Faber 2015-09-04 15:22:16 +00:00
parent 8cb9d1125b
commit ddfbce11a3
2 changed files with 12 additions and 0 deletions

View 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)

View 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)