Do not inject in the cling include paths portions of the sources
unless we are in a regime where CLING_INCLUDE_TESTS is defined. This requires to re-balance the dictionary construction adding the paths for the runtime universe.
This commit is contained in:
parent
083253181a
commit
b1ce4dbc1f
@ -372,20 +372,25 @@ endif()
|
||||
|
||||
#Allow user to prepend to list via cmake -DCLING_INCLUDE_PATHS=
|
||||
if(DEFINED ROOT_BINARY_DIR)
|
||||
set(cling_include_deflt "\
|
||||
${CMAKE_INSTALL_PREFIX}/include${cling_path_delim}${CMAKE_CURRENT_SOURCE_DIR}/include${cling_path_delim}\
|
||||
set(cling_include_deflt "${CMAKE_INSTALL_PREFIX}/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../llvm/src/tools/clang/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../llvm/src/include${cling_path_delim}")
|
||||
if( CLING_INCLUDE_TESTS )
|
||||
set(cling_include_deflt "${cling_path_delim}${cling_include_deflt}${cling_path_delim}\
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../llvm/src/tools/clang/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../llvm/src/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../llvm/src/include"
|
||||
)
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
set(cling_include_deflt "\
|
||||
${CMAKE_INSTALL_PREFIX}/include${cling_path_delim}\
|
||||
set(cling_include_deflt "${CMAKE_INSTALL_PREFIX}/include")
|
||||
if( CLING_INCLUDE_TESTS )
|
||||
set(cling_include_deflt "${cling_path_delim}${cling_include_deflt}${cling_path_delim}\
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../clang/include${cling_path_delim}\
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../include"
|
||||
)
|
||||
)
|
||||
endif()
|
||||
if (WIN32)
|
||||
set(cling_include_deflt "${cling_include_deflt}${cling_path_delim}\
|
||||
${CMAKE_BINARY_DIR}/include${cling_path_delim}\
|
||||
|
Loading…
x
Reference in New Issue
Block a user