[CMAKE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Wed, 3 Nov 2010 12:57:03 +0000 (12:57 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Wed, 3 Nov 2010 12:57:03 +0000 (12:57 +0000)
  allow to specify build tools directory with -DREACTOS_BUILD_TOOLS_DIR=Y:\you\path
So now you're able to use multiple compilers with one tree without too much worry.

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

CMakeLists.txt

index 27a2c5e..29af31f 100644 (file)
@@ -65,7 +65,11 @@ enable_language(ASM)
 # Activate language support for resource files
 enable_language(RC)
 
-set(IMPORT_EXECUTABLES "${REACTOS_SOURCE_DIR}/build/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
+if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
+  set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
+endif()
+
+set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
 include(${IMPORT_EXECUTABLES})
 
 add_definitions(-DDBG=${DBG} -DKDBG=${KDBG})