[FREELDR]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 4 Feb 2011 22:43:36 +0000 (22:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 4 Feb 2011 22:43:36 +0000 (22:43 +0000)
- Don't apply gcc only flags to msvc.

svn path=/branches/cmake-bringup/; revision=50606

boot/freeldr/freeldr/CMakeLists.txt

index 841fe1b..b634a1b 100644 (file)
@@ -199,7 +199,9 @@ if(ARCH MATCHES i386 OR ARCH MATCHES amd64)
     list(APPEND SETUPLDR_MAIN_SOURCE windows/setupldr2.c)
 endif()
 
-set_source_files_properties(${SETUPLDR_MAIN_SOURCE} PROPERTIES COMPILE_FLAGS "-ffreestanding -fno-builtin -fno-inline -fno-zero-initialized-in-bss")
+if(NOT MSVC)
+    set_source_files_properties(${SETUPLDR_MAIN_SOURCE} PROPERTIES COMPILE_FLAGS "-ffreestanding -fno-builtin -fno-inline -fno-zero-initialized-in-bss")
+endif()
 
 list(APPEND SETUPLDR_SOURCE
     ${FREELDR_STARTUP_SOURCE}