Skip to content

Commit

Permalink
Support compilation against Ubuntu 24.04 swig4.1 (#364)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored Jul 4, 2024
1 parent e157e35 commit c4036a7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ target_link_libraries(\${PROJECT_NAME}
###############################################################################
# Python bindings for type

find_package(SWIG REQUIRED)
find_package(SWIG)
if (NOT SWIG_FOUND)
# Trick to find swig4.1 in Ubuntu noble.
find_program(SWIG_EXECUTABLE NAMES swig4.1 swig)
find_package(SWIG REQUIRED)
endif()
include(\${SWIG_USE_FILE})
set(CMAKE_SWIG_FLAGS "")

Expand Down

0 comments on commit c4036a7

Please sign in to comment.