diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 8e931626405e..c4f61df19182 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -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