Allow /clang-7" -cc1 to ge found.

This commit is contained in:
Axel Naumann 2019-09-03 16:23:49 +02:00 committed by SFT
parent c7b980caf3
commit 5446ed5a48

View File

@ -152,13 +152,13 @@ if (UNIX)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
execute_process(
COMMAND echo ${_cling_cxx_path}
COMMAND grep "/${_name}\" -cc1"
COMMAND grep "/${_name}.*\" -cc1"
OUTPUT_VARIABLE _cling_clng_path)
if(NOT _cling_clng_path)
execute_process(
COMMAND echo ${_cling_cxx_path}
COMMAND grep "/clang\" -cc1"
COMMAND grep "/clang.*\" -cc1"
OUTPUT_VARIABLE _cling_clng_path)
endif()