mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Mac build: use more system libraries
libxml2, libxslt, and libsqlite3 are new enough on macOS to no longer require our own versions. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d839392bb6
commit
ccfdd6deec
1 changed files with 8 additions and 3 deletions
|
@ -117,9 +117,14 @@ include(cmake/Modules/HandleVersionGeneration.cmake)
|
|||
include(cmake/Modules/RunOnBuildDir.cmake)
|
||||
include(cmake/Modules/cmake_variables_helper.cmake)
|
||||
|
||||
pkg_config_library(LIBXML libxml-2.0 REQUIRED)
|
||||
pkg_config_library(LIBSQLITE3 sqlite3 REQUIRED)
|
||||
pkg_config_library(LIBXSLT libxslt REQUIRED)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
include_directories(${CMAKE_OSX_SYSROOT}/usr/include/libxml2)
|
||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lxml2 -lxslt -lsqlite3)
|
||||
else()
|
||||
pkg_config_library(LIBXML libxml-2.0 REQUIRED)
|
||||
pkg_config_library(LIBSQLITE3 sqlite3 REQUIRED)
|
||||
pkg_config_library(LIBXSLT libxslt REQUIRED)
|
||||
endif()
|
||||
pkg_config_library(LIBZIP libzip REQUIRED)
|
||||
pkg_config_library(LIBUSB libusb-1.0 QUIET)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue