[HOST_TOOLS]
[reactos.git] / reactos / sdk / tools / xml2sdb / CMakeLists.txt
index 8eb9e23..6997c6f 100644 (file)
@@ -1,13 +1,6 @@
 
 add_definitions(-DSDBWRITE_HOSTTOOL=1)
 
-if(MSVC)
-    set_property(SOURCE main.cpp tinyxml2.cpp xml2sdb.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " /EHsc")
-else()
-    add_compile_flags("-fshort-wchar -Wno-multichar")
-endif()
-
-
 list(APPEND SOURCE
     main.cpp
     tinyxml2.cpp
@@ -17,3 +10,9 @@ list(APPEND SOURCE
 
 include_directories(${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp)
 add_host_tool(xml2sdb ${SOURCE})
+
+if(MSVC)
+    set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS " /EHsc")
+else()
+    add_target_compile_flags(xml2sdb "-fshort-wchar")
+endif()