r197423 - In a standalone Clang build, default to building tests, like LLVM does
Dmitri Gribenko
gribozavr at gmail.com
Mon Dec 16 12:54:13 PST 2013
Author: gribozavr
Date: Mon Dec 16 14:54:13 2013
New Revision: 197423
URL: http://llvm.org/viewvc/llvm-project?rev=197423&view=rev
Log:
In a standalone Clang build, default to building tests, like LLVM does
LLVM_INCLUDE_TESTS is set in the top-level LLVM CMakeLists, which is not being
executed when Clang is built in a separate directory.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=197423&r1=197422&r2=197423&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Mon Dec 16 14:54:13 2013
@@ -46,6 +46,10 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
set(LLVM_MAIN_INCLUDE_DIR "${LLVM_MAIN_SRC_DIR}/include")
set(LLVM_BINARY_DIR ${CMAKE_BINARY_DIR})
+ if (NOT DEFINED LLVM_INCLUDE_TESTS)
+ set(LLVM_INCLUDE_TESTS ON)
+ endif()
+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories("${PATH_TO_LLVM_BUILD}/include" "${LLVM_MAIN_INCLUDE_DIR}")
link_directories("${PATH_TO_LLVM_BUILD}/lib")
More information about the cfe-commits
mailing list