Merge pull request #26 from spice/relative-clang-root

Handle relative DPATH_TO_LLVM_ROOT
This commit is contained in:
Val Markovic 2013-02-05 21:01:34 -08:00
commit 9bee28a0a8

View File

@ -66,6 +66,11 @@ else()
set( CLANG_INCLUDES_DIR "${CMAKE_SOURCE_DIR}/llvm/include" )
endif()
if ( NOT IS_ABSOLUTE "${CLANG_INCLUDES_DIR}" )
get_filename_component(CLANG_INCLUDES_DIR
"${CMAKE_BINARY_DIR}/${CLANG_INCLUDES_DIR}" ABSOLUTE)
endif()
if ( NOT EXTERNAL_LIBCLANG_PATH AND PATH_TO_LLVM_ROOT )
# Need TEMP because find_library does not work with an option variable
find_library( TEMP clang