diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-06-29 00:39:23 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-06-29 00:39:23 +0000 |
commit | 65cf624deb6ae4a235e567697cd1fc5ecb26cfcf (patch) | |
tree | 24225ff73f984b6afc213026c342df7da1b47f34 | |
parent | 8d0f528afd9fcb9ebb8ccb4b8a529a05375b628e (diff) |
Switch Clang's CMake lit.site.cfg generation over to use the common
helpers rather than its own special-rolled code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159398 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CMakeLists.txt | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ec740de30c..41154d43fc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,25 +1,16 @@ -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}/..") set(CLANG_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/..") -if(BUILD_SHARED_LIBS) - set(ENABLE_SHARED 1) -else() - set(ENABLE_SHARED 0) -endif(BUILD_SHARED_LIBS) -configure_file( +configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in - ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg) + ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg + ) -configure_file( +configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg - @ONLY) + ) include(FindPythonInterp) if(PYTHONINTERP_FOUND) |