diff --git a/interpreter/cling/CMakeLists.txt b/interpreter/cling/CMakeLists.txt
index 7dcd5ecae01cdb785df4e6ac80f2555eedacc64e..38d0a4d24dee2017ad65d78ed7055cbf7b397fb3 100644
--- a/interpreter/cling/CMakeLists.txt
+++ b/interpreter/cling/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)