We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4331c89 commit 50d001cCopy full SHA for 50d001c
CMakeLists.txt
@@ -132,9 +132,9 @@ endif()
132
# Find Clang resource directory with Clang executable.
133
134
if(NOT CLANG_RESOURCE_DIR)
135
- find_program(CLANG_EXECUTABLE clang)
+ find_program(CLANG_EXECUTABLE clang-${Clang_VERSION_MAJOR})
136
if(NOT CLANG_EXECUTABLE)
137
- message(FATAL_ERROR "clang executable not found.")
+ message(FATAL_ERROR "clang-${Clang_VERSION_MAJOR} executable not found.")
138
endif()
139
140
execute_process(
0 commit comments