Fixed that we corrupt CLING_CXX_PATH

This will fix the issue that cling will try to invoke "OFF " to find headers.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
Raphael Isemann 2017-03-10 11:53:30 +01:00 committed by sftnight
parent f1def4fefd
commit 449c26d5f4

View File

@ -220,13 +220,13 @@ if (UNIX)
if (CLING_CXX_PATH)
execute_process(COMMAND ${CLING_CXX_PATH} ${CLING_CXX_PATH_ARGS} -xc++ -E -v /dev/null
OUTPUT_QUIET ERROR_VARIABLE CLING_CXX_HEADERS)
set(CLING_CXX_PATH "${CLING_CXX_PATH} ${CLING_CXX_PATH_ARGS}")
else()
# convert CMAKE_CXX_FLAGS to a list for execute_process
string(REPLACE " " ";" cling_tmp_arg_list ${CMAKE_CXX_FLAGS})
execute_process(COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} ${cling_tmp_arg_list} -xc++ -E -v /dev/null
OUTPUT_QUIET ERROR_VARIABLE CLING_CXX_HEADERS)
endif()
set(CLING_CXX_PATH "${CLING_CXX_PATH} ${CLING_CXX_PATH_ARGS}")
execute_process(
COMMAND echo ${CLING_CXX_HEADERS}