Skip to content

Commit

Permalink
python-parser: use PythonLibs
Browse files Browse the repository at this point in the history
It works better than pkg-config.

Signed-off-by: Tibor Benke <[email protected]>
  • Loading branch information
Tibor Benke committed Jun 28, 2016
1 parent dd364aa commit 92dbd63
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python-parser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkg_check_modules(PYTHONLIBS python3>=3.4)
find_package(PythonLibs 3.4)

if (PYTHONLIBS_FOUND)
option(ENABLE_PYTHON_PARSER "Enable python-parser module" ON)
Expand All @@ -7,7 +7,6 @@ else()
endif()

if (ENABLE_PYTHON_PARSER)
pkg_check_modules(PYTHONLIBS python3>=3.4 REQUIRED)
add_cargo_lib_target(python-parser)

install(FILES ${PYTHON_PARSER_PATH} DESTINATION lib/syslog-ng)
Expand Down

0 comments on commit 92dbd63

Please sign in to comment.