]> granicus.if.org Git - clang/commitdiff
[CMake] Always set CMAKE_INCLUDE_CURRENT_DIR.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 26 Jan 2014 12:34:48 +0000 (12:34 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 26 Jan 2014 12:34:48 +0000 (12:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200144 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 8e931626405e7c386c1e495b3db74ced5cb4a10a..c4f61df1918246acdfc52f31a1b1925279cb3ba0 100644 (file)
@@ -86,7 +86,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
     set(LLVM_INCLUDE_TESTS ON)
   endif()
 
-  set(CMAKE_INCLUDE_CURRENT_DIR ON)
   include_directories("${LLVM_BINARY_DIR}/include" "${LLVM_MAIN_INCLUDE_DIR}")
   link_directories("${LLVM_LIBRARY_DIR}")
 
@@ -341,6 +340,8 @@ macro(add_clang_executable name)
   set_target_properties(${name} PROPERTIES FOLDER "Clang executables")
 endmacro(add_clang_executable)
 
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
 include_directories(BEFORE
   ${CMAKE_CURRENT_BINARY_DIR}/include
   ${CMAKE_CURRENT_SOURCE_DIR}/include