diff --git a/CMakeLists.txt b/CMakeLists.txt index 42ac3185d..5d8f39223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,9 @@ if (POLICY CMP0043) endif (POLICY CMP0043) +include (${PROJECT_SOURCE_DIR}/CMake/VersionCompute.cmake) +message (STATUS "Building ${CMAKE_PROJECT_NAME}-${wsjtx_VERSION}") + # # project information # @@ -49,7 +52,7 @@ set (PROJECT_VENDOR "Joe Taylor, K1JT") set (PROJECT_CONTACT "Joe Taylor ") set (PROJECT_COPYRIGHT "Copyright (C) 2001-2014 by Joe Taylor, K1JT") set (PROJECT_HOMEPAGE "http://www.physics.princeton.edu/pulsar/K1JT/wsjtx.html") -set (PROJECT_MANUAL wsjtx-main.html) +set (PROJECT_MANUAL wsjtx-main-${wsjtx_VERSION}.html) set (PROJECT_MANUAL_DIRECTORY_URL http://www.physics.princeton.edu/pulsar/K1JT/wsjtx-doc) set (PROJECT_SUMMARY_DESCRIPTION "${PROJECT_NAME} - JT9 and JT65 Modes for LF, MF and HF Amateur Radio.") set (PROJECT_DESCRIPTION "${PROJECT_SUMMARY_DESCRIPTION} @@ -80,9 +83,6 @@ set (PROJECT_KVASD_URL http://svn.code.sf.net/p/wsjt/wsjt/trunk/kvasd-binary) set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/Modules ${CMAKE_MODULE_PATH}) -include (${PROJECT_SOURCE_DIR}/CMake/VersionCompute.cmake) -message (STATUS "Building ${CMAKE_PROJECT_NAME}-${wsjtx_VERSION}") - # make sure that the default configuration is a RELEASE if (NOT CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE RELEASE CACHE STRING diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index e97b194b7..90fefd92f 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -134,5 +134,6 @@ add_custom_target (docs ALL DEPENDS ${user_guide}) install (FILES ${user_guide} DESTINATION ${WSJT_SHARE_DESTINATION}/${WSJT_DOC_DESTINATION} + RENAME ${PROJECT_MANUAL} #COMPONENT runtime ) diff --git a/doc/wsjtx.conf.in b/doc/wsjtx.conf.in index ae6214f53..0ba42eae1 100644 --- a/doc/wsjtx.conf.in +++ b/doc/wsjtx.conf.in @@ -4,4 +4,4 @@ VERSION_MAJOR=@WSJTX_VERSION_MAJOR@ VERSION_MINOR=@WSJTX_VERSION_MINOR@ VERSION_PATCH=@WSJTX_VERSION_PATCH@ -VERSION=@WSJTX_VERSION_MAJOR@.@WSJTX_VERSION_MINOR@.@WSJTX_VERSION_PATCH@ +VERSION=@wsjtx_VERSION@