Skip to content

Commit b46b73e

Browse files
committed
COMP: Prefer to use find_package(Python3 )
The Python3 find_package is more robust and allows more control over ABI and version selections.
1 parent 37b0d31 commit b46b73e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ endif()
5353
#-----------------------------------------------------------------------------
5454
# Python libraries
5555

56-
find_package(PythonLibs REQUIRED)
57-
include_directories("${PYTHON_INCLUDE_DIR}")
56+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
57+
include_directories("${Python3_INCLUDE_DIRS}")
5858
add_definitions(
5959
-DPYTHONQT_USE_RELEASE_PYTHON_FALLBACK
6060
-DPYTHONQT_SUPPORT_NAME_PROPERTY

0 commit comments

Comments
 (0)