From 911071a0804003f1d7c3dee5783f854f1bba45a3 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 3 Mar 2018 15:34:10 +0100 Subject: [PATCH] CLANG_INCLUDE_DIRS and LLVM_INCLUDE_DIRS can be lists of values. The cmake lists are semicolon-separated strings which we fail to pass to the colon-expecting interface. --- CMakeLists.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dcd5eca..38d0a4d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -434,11 +434,14 @@ else() endif() if( CLING_INCLUDE_TESTS ) - set(cling_include_deflt "${CMAKE_INSTALL_PREFIX}/include${cling_path_delim}\ -${CMAKE_CURRENT_SOURCE_DIR}/include${cling_path_delim}\ -${CLANG_INCLUDE_DIRS}${cling_path_delim}\ -${LLVM_INCLUDE_DIRS}" - ) + set(cling_include_deflt ${CMAKE_INSTALL_PREFIX}/include + ${CMAKE_CURRENT_SOURCE_DIR}/include + ${CLANG_INCLUDE_DIRS} + ${LLVM_INCLUDE_DIRS} + ) + + # CLANG_INCLUDE_DIRS and LLVM_INCLUDE_DIRS can be a semicolon separated lists. + string(REPLACE ";" ${cling_path_delim} cling_include_deflt "${cling_include_deflt}") endif() if(NOT CLING_INCLUDE_PATHS)