Skip to content

Commit

Permalink
Use LIBEXSLT_DOTTED_VERSION for exsltconfig.h.in and libexslt
Browse files Browse the repository at this point in the history
  • Loading branch information
rickertm authored and nwellnhof committed May 4, 2020
1 parent cb3ccdd commit e68b39e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ set(LIBXSLT_DOTTED_VERSION "${LIBXSLT_MAJOR_VERSION}.${LIBXSLT_MINOR_VERSION}.${
math(EXPR LIBXSLT_VERSION_NUMBER "${LIBXSLT_MAJOR_VERSION} * 10000 + ${LIBXSLT_MINOR_VERSION} * 100 + ${LIBXSLT_MICRO_VERSION}")
set(LIBXSLT_VERSION_EXTRA "")

set(VERSION ${LIBXSLT_DOTTED_VERSION})
set(LIBEXSLT_VERSION ${LIBEXSLT_DOTTED_VERSION})

find_package(Iconv)
find_package(LibXml2)
find_package(Python2 COMPONENTS Interpreter Development)
Expand Down Expand Up @@ -154,9 +157,7 @@ else()
configure_file(config.h.cmake.in config.h)
endif()

set(VERSION ${LIBEXSLT_DOTTED_VERSION})
configure_file(libexslt/exsltconfig.h.in libexslt/exsltconfig.h)
set(VERSION ${LIBXSLT_DOTTED_VERSION})
configure_file(libxslt/xsltconfig.h.in libxslt/xsltconfig.h)

set(
Expand Down Expand Up @@ -339,7 +340,7 @@ set_target_properties(
OUTPUT_NAME exslt
POSITION_INDEPENDENT_CODE ON
PREFIX lib
VERSION ${VERSION}
VERSION ${LIBEXSLT_VERSION}
)

if(WIN32)
Expand Down
5 changes: 5 additions & 0 deletions libxslt-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ set(LIBXSLT_VERSION_MAJOR "@LIBXSLT_MAJOR_VERSION@")
set(LIBXSLT_VERSION_MINOR "@LIBXSLT_MINOR_VERSION@")
set(LIBXSLT_VERSION_PATCH "@LIBXSLT_MICRO_VERSION@")

set(LIBEXSLT_VERSION "@LIBEXSLT_VERSION@")
set(LIBEXSLT_VERSION_MAJOR "@LIBEXSLT_MAJOR_VERSION@")
set(LIBEXSLT_VERSION_MINOR "@LIBEXSLT_MINOR_VERSION@")
set(LIBEXSLT_VERSION_PATCH "@LIBEXSLT_MICRO_VERSION@")

@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/libxslt-export.cmake")
Expand Down

0 comments on commit e68b39e

Please sign in to comment.