Don't override CLANG_BINARY

This commit is contained in:
Jonathan Müller 2018-09-24 16:02:05 +02:00
commit bf872b31d1
2 changed files with 4 additions and 6 deletions

View file

@ -196,9 +196,7 @@ function(_cppast_find_libclang config_tool min_version force)
endif()
# find clang binary in llvm_binary_dir
if(${force})
unset(CLANG_BINARY CACHE)
endif()
# note: never override that binary
if(NOT CLANG_BINARY)
execute_process(COMMAND ${config_tool} --bindir
OUTPUT_VARIABLE llvm_binary_dir OUTPUT_STRIP_TRAILING_WHITESPACE)