r200144 - [CMake] Always set CMAKE_INCLUDE_CURRENT_DIR.

NAKAMURA Takumi geek4civic at gmail.com
Sun Jan 26 04:34:49 PST 2014


Author: chapuni
Date: Sun Jan 26 06:34:48 2014
New Revision: 200144

URL: http://llvm.org/viewvc/llvm-project?rev=200144&view=rev
Log:
[CMake] Always set CMAKE_INCLUDE_CURRENT_DIR.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=200144&r1=200143&r2=200144&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Sun Jan 26 06:34:48 2014
@@ -86,7 +86,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
     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





More information about the cfe-commits mailing list