[cfe-commits] r133730 - /cfe/trunk/test/CMakeLists.txt

Andrew Trick atrick at apple.com
Thu Jun 23 11:00:48 PDT 2011


Author: atrick
Date: Thu Jun 23 13:00:48 2011
New Revision: 133730

URL: http://llvm.org/viewvc/llvm-project?rev=133730&view=rev
Log:
cmake+lit: final cleanup related to the recent churn

Modified:
    cfe/trunk/test/CMakeLists.txt

Modified: cfe/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CMakeLists.txt?rev=133730&r1=133729&r2=133730&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Thu Jun 23 13:00:48 2011
@@ -28,6 +28,7 @@
 
 set(LLVM_SOURCE_DIR "${LLVM_MAIN_SRC_DIR}")
 set(LLVM_BINARY_DIR "${LLVM_BINARY_DIR}")
+set(LLVM_BUILD_MODE "%(build_mode)s")
 set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}/%(build_config)s")
 set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib/%(build_config)s")
 set(CLANG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..")
@@ -38,16 +39,10 @@
   set(ENABLE_SHARED 0)
 endif(BUILD_SHARED_LIBS)
 
-# lit.site.cfg uses the config-time build mode
-set(LLVM_BUILD_MODE "${LLVM_BUILD_MODE}")
-
 configure_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
 
-# Unit/lit.site.cfg substitutes the runtime build_mode
-set(LLVM_BUILD_MODE "%(build_mode)s")
-
 configure_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
   ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg





More information about the cfe-commits mailing list