Skip to content

Commit

Permalink
Fix platform checks for libxml2. (#687)
Browse files Browse the repository at this point in the history
Use the CMake module for finding libxml2, instead of relying on
pkg-config which may break on some platforms like macOS.
  • Loading branch information
brndnmtthws authored Dec 2, 2018
1 parent 71a6067 commit c105903
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/ConkyPlatformChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,12 @@ if(WANT_CURL)
endif(WANT_CURL)

if(WANT_LIBXML2)
pkg_check_modules(LIBXML2 REQUIRED libxml-2.0)
include(FindLibXml2)
if(NOT LIBXML2_FOUND)
message(FATAL_ERROR "Unable to find libxml2 library")
endif(NOT LIBXML2_FOUND)
set(conky_libs ${conky_libs} ${LIBXML2_LIBRARIES})
set(conky_includes ${conky_includes} ${LIBXML2_INCLUDE_DIRS})
set(conky_includes ${conky_includes} ${LIBXML2_INCLUDE_DIR})
endif(WANT_LIBXML2)

if(WANT_TOLUA)
Expand Down

0 comments on commit c105903

Please sign in to comment.