mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Replace PYTHONLIBS by PYTHON3 in CMakeLists.txt
https://cmake.org/cmake/help/latest/module/FindPython3.html
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user