Combined merge of I49c5037 and I23ec2dc broke the build without any
conflicts, since usage for a variable that was renamed in the first was
added in the second.
The version management logic in the package config still needs some
extra thought, but that's better done separately to get the build fixed.
Change-Id: I93db8c0c5b515bc73f8e4e10eae86d9fd049975d
endfunction()
function (do_cmake_config)
- # Remove -dev suffix and similar, since we need a numeric version.
- # TODO: Make also the full version string available from somewhere.
- string(REGEX REPLACE "-.*$" "" PACKAGE_VERSION ${PROJECT_VERSION})
# Install everything into a subdirectory, because
# 1. CMake expects things to be there for CMAKE_PREFIX_PATH to work, and
# 2. This nicely isolates files for different suffixes from each other.
# To help us fund GROMACS development, we humbly ask that you cite
# the research papers on the package. Check out http://www.gromacs.org.
-set(PACKAGE_VERSION "@PACKAGE_VERSION@")
+set(PACKAGE_VERSION "@GMX_VERSION@")
if ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
include(FindPackageMessage)
# The version info is set by CMake when it determines whether this file
# is suitable (by calling the version file, which sets PACKAGE_VERSION).
+# TODO: Make also the full version string available from somewhere.
set(_gmx_info "${GROMACS_VERSION}")
if (GROMACS_SUFFIX)
set(_gmx_info "${_gmx_info} (suffix: ${GROMACS_SUFFIX})")