Avoid copying or creating soft link of cling under llvm/src/tools. This solved the problem of soft links on Windows.

This commit is contained in:
Pere Mato 2014-09-04 17:43:30 +02:00 committed by sftnight
parent c0321e417e
commit 1330543641

View File

@ -156,11 +156,9 @@ macro(add_cling_executable name)
set_target_properties(${name} PROPERTIES FOLDER "Cling executables")
endmacro(add_cling_executable)
get_filename_component(_realpath ${CMAKE_CURRENT_SOURCE_DIR}/../clang/include REALPATH)
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}/../clang/include
# ${CMAKE_CURRENT_SOURCE_DIR}/../clang/include
${_realpath}
${CMAKE_CURRENT_BINARY_DIR}/../llvm/src/tools/clang/include
${CMAKE_CURRENT_SOURCE_DIR}/../llvm/src/tools/clang/include
)
include_directories(BEFORE