mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
python: use built-in CMake FindPython module from CMake 3.12 or higher
This commit is contained in:
committed by
Sébastien Helleu
parent
7fb3ca6686
commit
9a9a262ea1
@@ -25,8 +25,10 @@ add_library(python MODULE
|
||||
)
|
||||
set_target_properties(python PROPERTIES PREFIX "")
|
||||
|
||||
if(PYTHON_FOUND)
|
||||
target_link_libraries(python PkgConfig::PYTHON weechat_plugins_scripts coverage_config)
|
||||
if(Python_FOUND)
|
||||
include_directories(${Python_INCLUDE_DIRS})
|
||||
add_definitions(${Python_DEFINITIONS})
|
||||
target_link_libraries(python ${Python_LIBRARIES} weechat_plugins_scripts coverage_config)
|
||||
endif()
|
||||
|
||||
install(TARGETS python LIBRARY DESTINATION "${WEECHAT_LIBDIR}/plugins")
|
||||
|
||||
Reference in New Issue
Block a user