Browse Source

Changed the build script to make Raspberry Pi build has the same behaviour between native build and cross-compile build.

Wei Tjong Yao 12 years ago
parent
commit
1addaa979d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -306,9 +306,9 @@ if (ENABLE_LUA)
     add_subdirectory (Extras/LuaScript)
 endif ()
 
-# Assuming cross compiling is used to target embedded system, and hence it does not make sense to build the tools (except when it is explicitly enabled)
+# Do not build tools for embedded system unless it is explicitly enabled
 if (NOT ENABLE_TOOLS)
-    if (CMAKE_CROSSCOMPILING)
+    if (RASPI)
         set (ENABLE_TOOLS 0)
     else ()
         set (ENABLE_TOOLS 1)