aboutsummaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-06-23 18:00:32 +0000
committerAndrew Trick <atrick@apple.com>2011-06-23 18:00:32 +0000
commit28578e3137c8e2ab1b406480a262cad34c565c37 (patch)
treeeb918b6805ed6d77e2bb00a76fadeb8268f3f46e /test/CMakeLists.txt
parentef41ff618f2537539b538e6c7bf471c753391f92 (diff)
downloadexternal_llvm-28578e3137c8e2ab1b406480a262cad34c565c37.zip
external_llvm-28578e3137c8e2ab1b406480a262cad34c565c37.tar.gz
external_llvm-28578e3137c8e2ab1b406480a262cad34c565c37.tar.bz2
cmake+lit: final cleanup related to the recent churn
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 2634f79..1fc26a0 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -71,6 +71,8 @@ if(PYTHONINTERP_FOUND)
MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/Unit)
# Configuration-time: See Unit/lit.site.cfg.in
+ set(LLVM_BUILD_MODE "%(build_mode)s")
+
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
set(LLVM_BINARY_DIR ${LLVM_BINARY_DIR})
set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}/%(build_config)s")
@@ -85,17 +87,10 @@ if(PYTHONINTERP_FOUND)
set(ENABLE_ASSERTIONS "0")
endif(LLVM_ENABLE_ASSERTIONS)
- # 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
@ONLY)
-
- # 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