[CMake] Always set CMAKE_INCLUDE_CURRENT_DIR.

llvm-svn: 200144
This commit is contained in:
NAKAMURA Takumi 2014-01-26 12:34:48 +00:00
parent 4080a2097b
commit 1a309679b8
1 changed files with 2 additions and 1 deletions

View File

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