Skip to content

Commit

Permalink
Search libxml2 and libxslt inside macOS SDK root
Browse files Browse the repository at this point in the history
  • Loading branch information
annulen committed Sep 6, 2023
1 parent d8d1c40 commit 18ea28c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/cmake/OptionsQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@ if (APPLE)
endif ()

if (MACOS_FORCE_SYSTEM_XML_LIBRARIES)
set(LIBXML2_INCLUDE_DIR "${CMAKE_OSX_SYSROOT}/usr/include/libxml2")
set(LIBXML2_LIBRARIES xml2)
find_package(LibXml2 2.8.0 REQUIRED
PATHS ${CMAKE_OSX_SYSROOT} NO_DEFAULT_PATH)
if (ENABLE_XSLT)
set(LIBXSLT_INCLUDE_DIR "${CMAKE_OSX_SYSROOT}/usr/include/libxslt")
set(LIBXSLT_LIBRARIES xslt)
find_package(LibXslt 1.1.7 REQUIRED
PATHS ${CMAKE_OSX_SYSROOT} NO_DEFAULT_PATH)
endif ()
else ()
find_package(LibXml2 2.8.0 REQUIRED)
Expand Down

0 comments on commit 18ea28c

Please sign in to comment.