Allow /clang-7" -cc1
to ge found.
This commit is contained in:
parent
c7b980caf3
commit
5446ed5a48
@ -152,13 +152,13 @@ if (UNIX)
|
|||||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND echo ${_cling_cxx_path}
|
COMMAND echo ${_cling_cxx_path}
|
||||||
COMMAND grep "/${_name}\" -cc1"
|
COMMAND grep "/${_name}.*\" -cc1"
|
||||||
OUTPUT_VARIABLE _cling_clng_path)
|
OUTPUT_VARIABLE _cling_clng_path)
|
||||||
|
|
||||||
if(NOT _cling_clng_path)
|
if(NOT _cling_clng_path)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND echo ${_cling_cxx_path}
|
COMMAND echo ${_cling_cxx_path}
|
||||||
COMMAND grep "/clang\" -cc1"
|
COMMAND grep "/clang.*\" -cc1"
|
||||||
OUTPUT_VARIABLE _cling_clng_path)
|
OUTPUT_VARIABLE _cling_clng_path)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user