Author: tkreuzer
Date: Thu Dec 2 22:24:58 2010
New Revision: 49905
URL:
http://svn.reactos.org/svn/reactos?rev=49905&view=rev
Log:
[CMAKE]
Fix compilation of setupldr on msvc
Modified:
branches/cmake-bringup/boot/CMakeLists.txt
Modified: branches/cmake-bringup/boot/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/boot/CMakeLists.t…
==============================================================================
--- branches/cmake-bringup/boot/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/boot/CMakeLists.txt [iso-8859-1] Thu Dec 2 22:24:58 2010
@@ -12,7 +12,7 @@
if(ARCH MATCHES arm)
if(SARCH MATCHES omap-zoom2)
add_definitions(-D_ZOOM2_)
- endif()
+ endif()
endif()
if(ARCH MATCHES i386)
@@ -222,7 +222,7 @@
set_target_properties(setupldr PROPERTIES LINK_FLAGS "-Wl,--strip-all
-Wl,--exclude-all-symbols -Wl,--file-alignment,0x1000
-Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/freeldr/freeldr/freeldr_i386.lnk" SUFFIX
".sys" COMPILE_DEFINITIONS "FREELDR_REACTOS_SETUP")
set_image_base(setupldr 0x8000)
else()
-set_target_properties(setupldr PROPERTIES LINK_FLAGS
"/SECTION:.text,ERWP,ALIGN=0x1000" SUFFIX ".sys" COMPILE_DEFINITIONS
"FREELDR_REACTOS_SETUP")
+set_target_properties(setupldr PROPERTIES LINK_FLAGS "/DRIVER
/SECTION:.text,ERWP,ALIGN=0x1000" SUFFIX ".sys" COMPILE_DEFINITIONS
"FREELDR_REACTOS_SETUP")
endif()
set_subsystem(setupldr native)