view rathaxes_simplify_windows_lkm_cmakelists_txt.patch @ 49:0c55f24c6b3d

Add a series of patch related to the build systme
author Louis Opter <louis@lse.epitech.net>
date Sun, 15 Jan 2012 21:36:15 +0100
parents
children
line wrap: on
line source

# HG changeset patch
# Parent 820ac8370b7ad9128154dbeb250c37dcec6fc87a
rathaxes: simply use IF (WIN32) instead of a MATCHES and remove an unrelated comment in the Windows LKM sample CMakeLists.txt

diff --git a/rathaxes/samples/windows_minimal_lkm/CMakeLists.txt b/rathaxes/samples/windows_minimal_lkm/CMakeLists.txt
--- a/rathaxes/samples/windows_minimal_lkm/CMakeLists.txt
+++ b/rathaxes/samples/windows_minimal_lkm/CMakeLists.txt
@@ -2,8 +2,6 @@
                      RTI log.rti lkm.rti
                      BLT log.blt lkm.blt)
 
-# We can't name lkm since it's already used as the target name to generate the
-# source (with ADD_RATHAXES_SOURCES).
-IF (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
-	ADD_RATHAXES_LKM(minimal_lkm minimal_lkm_src)
-ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+IF (WIN32)
+    ADD_RATHAXES_LKM(minimal_lkm minimal_lkm_src)
+ENDIF (WIN32)