aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Becker <heirecka@exherbo.org>2017-04-03 16:08:35 +0200
committerHeiko Becker <heirecka@exherbo.org>2017-04-03 20:07:20 +0200
commit47a4c068a4ecbd488675f221492e3244a44d21de (patch)
tree8ab96fcd0d2baac710151d1dc2e4e6edcb297e8d
parent7af9f8e2b6eb235923a329e8ff24012883fb6b86 (diff)
downloadextra-cmake-modules-47a4c068a4ecbd488675f221492e3244a44d21de.tar.gz
extra-cmake-modules-47a4c068a4ecbd488675f221492e3244a44d21de.tar.bz2
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 Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5291
-rw-r--r--find-modules/FindPythonModuleGeneration.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake
index 012f8062..684678ba 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()