mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-30 20:30:53 +00:00
Fixed: Link to static libxml2 under Linux
This commit is contained in:
parent
74722cb678
commit
12bf13239c
1 changed files with 10 additions and 6 deletions
|
@ -124,13 +124,17 @@ ENDIF(WITH_LIBXML2_ICONV)
|
||||||
|
|
||||||
IF(WITH_STATIC)
|
IF(WITH_STATIC)
|
||||||
# libxml2 could need winsock2 library
|
# libxml2 could need winsock2 library
|
||||||
|
IF(WINSOCK2_LIB)
|
||||||
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${WINSOCK2_LIB})
|
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${WINSOCK2_LIB})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# on Mac OS X libxml2 requires iconv and liblzma
|
IF(UNIX)
|
||||||
IF(APPLE)
|
# under Linux and OS X, recent libxml2 versions are linked against liblzma
|
||||||
FIND_PACKAGE(LibLZMA REQUIRED)
|
FIND_PACKAGE(LibLZMA)
|
||||||
|
IF(LIBLZMA_LIBRARIES)
|
||||||
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${LIBLZMA_LIBRARIES})
|
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} ${LIBLZMA_LIBRARIES})
|
||||||
ENDIF(APPLE)
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
ENDIF(WITH_STATIC)
|
ENDIF(WITH_STATIC)
|
||||||
|
|
||||||
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/PCHSupport.cmake)
|
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/PCHSupport.cmake)
|
||||||
|
|
Loading…
Reference in a new issue