[ros-diffs] [akhaldi] 49636: [CMAKE] - Improve the _filename condition. - Some minor formatting.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Fri Nov 19 16:43:44 UTC 2010


Author: akhaldi
Date: Fri Nov 19 16:43:43 2010
New Revision: 49636

URL: http://svn.reactos.org/svn/reactos?rev=49636&view=rev
Log:
[CMAKE]
- Improve the _filename condition.
- Some minor formatting.

Modified:
    branches/cmake-bringup/include/asm/CMakeLists.txt

Modified: branches/cmake-bringup/include/asm/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/asm/CMakeLists.txt?rev=49636&r1=49635&r2=49636&view=diff
==============================================================================
--- branches/cmake-bringup/include/asm/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/include/asm/CMakeLists.txt [iso-8859-1] Fri Nov 19 16:43:43 2010
@@ -5,25 +5,21 @@
 add_dependencies(genincdata bugcodes)
 
 if(MSVC)
-set(OPT_MS "-ms")
+    set(OPT_MS "-ms")
 else()
-set(OPT_MS "")
+    set(OPT_MS "")
 endif()
 
 if(ARCH MATCHES i386)
-set(_filename ks386)
-endif()
-if(ARCH MATCHES amd64)
-set(_filename ksamd64)
+    set(_filename ks386)
+elseif(ARCH MATCHES amd64)
+    set(_filename ksamd64)
 endif()
 
 add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc
     COMMAND native-geninc ${CMAKE_CURRENT_BINARY_DIR}/genincdata.dll  ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc ${OPT_MS}
-    DEPENDS genincdata
-)
+    DEPENDS genincdata)
 
-add_custom_target(
-    asm
-    DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc
-)
+add_custom_target(asm
+    DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc)




More information about the Ros-diffs mailing list