Skip to content

Commit

Permalink
python development is not always required (#43212)
Browse files Browse the repository at this point in the history
* python dev not always required

* simpler approach
  • Loading branch information
3nids committed May 14, 2021
1 parent 32af810 commit 1d88f38
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -941,7 +941,13 @@ set(QGIS_INSTALL_SYS_LIBS TRUE CACHE BOOL "If set to TRUE install all required s
set(MIN_PYTHON_VERSION "3.7")
set(Python_FIND_FRAMEWORK "LAST")

find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)

if (WITH_BINDINGS)
find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
else()
find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter)
endif()

message("-- Found Python executable: ${Python_EXECUTABLE} (version ${Python_VERSION})")
message("-- Python library: ${Python_LIBRARIES}")
message("-- Python site-packages: ${Python_SITEARCH}")
Expand Down

0 comments on commit 1d88f38

Please sign in to comment.