Skip to content

Commit

Permalink
Better swig error if not found and using clang
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Jan 5, 2024
1 parent f8e7e6c commit 920a9ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ if(NOT SWIG_FOUND)
set(SWIG_EXECUTABLE "${swig_BINARY_DIR}/bin/swig")
set(SWIG_EXECUTABLE "${swig_BINARY_DIR}/bin/swig" CACHE FILEPATH "Path to SWIG executable")
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(FATAL_ERROR " Unable to build swig from source with some Clang versions.\n"
" Please install swig >= ${SWIG_MINIMUM_SUPPORTED_VERSION} manually.")
endif()
# Attempt to find swig again, but as REQUIRED.
find_package(SWIG ${SWIG_MINIMUM_SUPPORTED_VERSION} REQUIRED)
Expand Down

0 comments on commit 920a9ad

Please sign in to comment.