[USETUP]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Oct 2014 10:08:33 +0000 (10:08 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Oct 2014 10:08:33 +0000 (10:08 +0000)
* Prevent the "illegal character encoding in string literal" warning from flooding the build log. This must be inspected.
CORE-8516

svn path=/trunk/; revision=64484

reactos/base/setup/usetup/CMakeLists.txt

index a2c3404..a53984e 100644 (file)
@@ -32,14 +32,13 @@ list(APPEND SOURCE
     settings.c
     usetup.h)
 
     settings.c
     usetup.h)
 
-add_executable(usetup ${SOURCE} usetup.rc)
-
-target_link_libraries(usetup
-    zlib
-    inflib
-    ext2lib
-    vfatlib)
+if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+    #FIXME: Investigate Clang "illegal character encoding in string literal" warning
+    set_property(SOURCE mui.c APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-invalid-source-encoding")
+endif()
 
 
+add_executable(usetup ${SOURCE} usetup.rc)
+target_link_libraries(usetup zlib inflib ext2lib vfatlib)
 set_module_type(usetup nativecui)
 add_importlibs(usetup ntdll)
 add_pch(usetup usetup.h SOURCE)
 set_module_type(usetup nativecui)
 add_importlibs(usetup ntdll)
 add_pch(usetup usetup.h SOURCE)