We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d90ea2 commit 8af4880Copy full SHA for 8af4880
1 file changed
swig/CMakeLists.txt
@@ -74,7 +74,8 @@ if(NOT SWIG_FOUND)
74
set(SWIG_EXECUTABLE "${swig_SOURCE_DIR}/swig.exe")
75
set(SWIG_EXECUTABLE "${swig_SOURCE_DIR}/swig.exe" CACHE FILEPATH "Path to SWIG executable")
76
endif()
77
- else()
+ # If under linux, and using gcc download, extract, build and install swig
78
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
79
# Under linux, download the .tar.gz, extract, build and install.
80
# This must be done at configure time, as FindSwig requires the swig executable.
81
# FetchContent allows download at configure time, but must use execute_process to run commands at configure time.
0 commit comments