File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.0)
2- project (libxml2 LANGUAGES C CXX VERSION 2.9.6)
2+ project (LibXml2 LANGUAGES C CXX VERSION 2.9.6)
33
44option (BUILD_TESTS "${PROJECT_NAME} - Build tests" ON )
5- set (PACKAGE_CONFIG_DIR "lib/cmake" CACHE STRING "Directory for package config files (relative to CMAKE_INSTALL_PREFIX)" )
6- option (ZLIB_WITH_ZLIB "Build in zlib support" ON )
7- option (ZLIB_WITH_TRIO "Build with trio support" OFF )
5+ option (LIBXML2_WITH_ZLIB "Build in zlib support" ON )
6+ option (LIBXML2_WITH_TRIO "Build with trio support" OFF )
87option (BUILD_SHARED_LIBS "Build shared library." ON )
8+ if (WIN32 )
9+ set (_DEFAULT_PACKAGE_CONFIG_DIR ${PROJECT_NAME} /CMake)
10+ else ()
11+ set (_DEFAULT_PACKAGE_CONFIG_DIR lib/cmake/${PROJECT_NAME} )
12+ endif ()
13+ set (PACKAGE_CONFIG_DIR ${_DEFAULT_PACKAGE_CONFIG_DIR} CACHE STRING "Directory for package config files (relative to CMAKE_INSTALL_PREFIX)" )
14+
15+ set (WITH_TRIO ${LIBXML2_WITH_TRIO} )
16+ set (WITH_ZLIB ${LIBXML2_WITH_ZLIB} )
917
10- set (WITH_ZLIB ${ZLIB_WITH_ZLIB} )
1118if (WITH_ZLIB)
1219 find_package (ZLIB ${ZLIB_VERSION} )
1320 if (NOT ZLIB_FOUND)
You can’t perform that action at this time.
0 commit comments