[cfe-commits] r124787 - /cfe/trunk/test/CMakeLists.txt
NAKAMURA Takumi
geek4civic at gmail.com
Thu Feb 3 01:01:12 PST 2011
Author: chapuni
Date: Thu Feb 3 03:01:12 2011
New Revision: 124787
URL: http://llvm.org/viewvc/llvm-project?rev=124787&view=rev
Log:
CMake: Fix test. CMake has not built unittests yet.
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=124787&r1=124786&r2=124787&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Thu Feb 3 03:01:12 2011
@@ -30,11 +30,21 @@
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(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
+configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
+ ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
+ @ONLY)
+
include(FindPythonInterp)
if(PYTHONINTERP_FOUND)
set(CLANG_TEST_EXTRA_ARGS)
More information about the cfe-commits
mailing list