Merge branch '2.0' into develop

This commit is contained in:
Markus Makela
2016-09-20 22:36:35 +03:00
17 changed files with 156 additions and 119 deletions

View File

@ -98,6 +98,11 @@ endif()
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${CMAKE_INSTALL_PREFIX}/${MAXSCALE_LIBDIR})
# Only do packaging if configured
if(PACKAGE)
include(cmake/package.cmake)
endif()
# Make sure the release notes for this release are present if it is a stable one
if(${MAXSCALE_VERSION} MATCHES "-stable")
file(GLOB ${CMAKE_SOURCE_DIR}/Documentation/Release-Notes RELEASE_NOTES *${MAXSCALE_VERSION_NUMERIC}*.md)
@ -227,7 +232,6 @@ if(WITH_SCRIPTS)
include(cmake/init_scripts.cmake)
endif()
# Only do packaging if configured
if(PACKAGE)
# Install the files copied by the postinst script into the share folder
@ -236,9 +240,6 @@ if(PACKAGE)
install_program(${CMAKE_BINARY_DIR}/postinst core)
install_program(${CMAKE_BINARY_DIR}/postrm core)
# Include the package configuration
include(cmake/package.cmake)
# CPack needs to be included after everything is configured
include(CPack)
endif()