Skip to content

Commit

Permalink
Replace PYTHONLIBS by PYTHON3 in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dl8dtl committed Apr 7, 2024
1 parent b39332d commit 9a8d5c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ endif()
# Find SWIG
find_package(SWIG 4.0 COMPONENTS python)
if(SWIG_FOUND)
find_package(PythonLibs REQUIRED)
if(PYTHONLIBS_FOUND)
find_package(Python3 COMPONENTS Interpreter Development)
if(PYTHON3_FOUND)
set(HAVE_SWIG 1)
else()
message(STATUS "Found SWIG but no Python3 header/library; cannot use SWIG")
endif()
endif()

Expand Down

0 comments on commit 9a8d5c1

Please sign in to comment.