Skip to content
Snippets Groups Projects
Commit e9299517 authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

[CMake] Move CLANG_INCLUDE_TESTS in advance of add_subdirectory(tools).

The target "check-clang-tools" is affected by CLANG_INCLUDE_TESTS but it was undefined in 1st configuration procedure.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249283 91177308-0d34-0410-b5e6-96231b3b80d8
parent 191d76cc
No related branches found
No related tags found
No related merge requests found
...@@ -490,6 +490,10 @@ set(LIBCLANG_LIBRARY_VERSION ...@@ -490,6 +490,10 @@ set(LIBCLANG_LIBRARY_VERSION
"Version number that will be placed into the libclang library , in the form XX.YY") "Version number that will be placed into the libclang library , in the form XX.YY")
mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION) mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)
option(CLANG_INCLUDE_TESTS
"Generate build targets for the Clang unit tests."
${LLVM_INCLUDE_TESTS})
add_subdirectory(utils/TableGen) add_subdirectory(utils/TableGen)
add_subdirectory(include) add_subdirectory(include)
...@@ -510,10 +514,6 @@ else() ...@@ -510,10 +514,6 @@ else()
endif() endif()
add_subdirectory(examples) add_subdirectory(examples)
option(CLANG_INCLUDE_TESTS
"Generate build targets for the Clang unit tests."
${LLVM_INCLUDE_TESTS})
if( CLANG_INCLUDE_TESTS ) if( CLANG_INCLUDE_TESTS )
if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include/gtest/gtest.h) if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include/gtest/gtest.h)
add_subdirectory(unittests) add_subdirectory(unittests)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment