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 | 8279aa782553b76d6a8ebd0914617a6ae35be78f (patch) | |
tree | 7528f0ef9fb14876cf637165fc5cc69d16ebdf7a /clang/test/CMakeLists.txt | |
parent | 42ee04d00a651a95337de6d83905fa81feb1767c (diff) | |
download | llvm-8279aa782553b76d6a8ebd0914617a6ae35be78f.zip llvm-8279aa782553b76d6a8ebd0914617a6ae35be78f.tar.gz llvm-8279aa782553b76d6a8ebd0914617a6ae35be78f.tar.bz2 |
Switch Clang's CMake lit.site.cfg generation over to use the common
helpers rather than its own special-rolled code.
llvm-svn: 159398
Diffstat (limited to 'clang/test/CMakeLists.txt')
-rw-r--r-- | clang/test/CMakeLists.txt | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index ec740de..41154d4 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/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) |