Skip to content

Commit

Permalink
Do not manually build and install swig if not using gcc as the host c…
Browse files Browse the repository at this point in the history
…ompiler
  • Loading branch information
ptheywood committed Oct 21, 2022
1 parent 9d90ea2 commit 8af4880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ if(NOT SWIG_FOUND)
set(SWIG_EXECUTABLE "${swig_SOURCE_DIR}/swig.exe")
set(SWIG_EXECUTABLE "${swig_SOURCE_DIR}/swig.exe" CACHE FILEPATH "Path to SWIG executable")
endif()
else()
# If under linux, and using gcc download, extract, build and install swig
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# Under linux, download the .tar.gz, extract, build and install.
# This must be done at configure time, as FindSwig requires the swig executable.
# FetchContent allows download at configure time, but must use execute_process to run commands at configure time.
Expand Down

0 comments on commit 8af4880

Please sign in to comment.