Add current binary and source directories to the header search list
authorOscar Fuentes <ofv@wanadoo.es>
Mon, 14 Feb 2011 20:13:58 +0000 (20:13 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Mon, 14 Feb 2011 20:13:58 +0000 (20:13 +0000)
for all compiler invocations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125513 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 41f41411405427948c4dcabc6fcd59e94b41f707..ce559ed7832a389e18aba8fa7656732f44f52595 100644 (file)
@@ -169,6 +169,8 @@ endif()
 option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
 option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
 
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
 include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR})
 
 if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )