From c4c4d75800fd8f7114897353c137391d56bf5538 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Tue, 4 Apr 2017 20:14:50 +0200 Subject: [PATCH] FindPyModGen: Also search for an unversioned clang++ Summary: While my distro does have a versioned clang executable, it doesn't have a versioned clang++ executable. The versioned executable is still searched first, falling back to the unversioned one. Reviewers: #frameworks, #build_system, apol Reviewed By: apol Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5291 --- find-modules/FindPythonModuleGeneration.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake index 012f806..684678b 100644 --- a/find-modules/FindPythonModuleGeneration.cmake +++ b/find-modules/FindPythonModuleGeneration.cmake @@ -251,7 +251,7 @@ include(CMakeParseArguments) set(GPB_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR}) function(_compute_implicit_include_dirs) - find_program(_GBP_CLANG_CXX_DRIVER_PATH clang++-${_GPB_CLANG_SUFFIX}) + find_program(_GBP_CLANG_CXX_DRIVER_PATH NAMES clang++-${_GPB_CLANG_SUFFIX} clang++) if (NOT _GBP_CLANG_CXX_DRIVER_PATH) message(FATAL_ERROR "Failed to find clang driver corresponding to ${libclang_LIBRARY}") endif() -- 2.12.0