Fix CMake package config after recent version changes
[alexxy/gromacs.git] / src / gromacs / InstallLibInfo.cmake
index 0635d666b357c02875842a59be91df341ab6c4c9..58856f88ce4b807452fbb5df5ec270d6a94c0bee 100644 (file)
@@ -57,9 +57,6 @@ function (do_pkgconfig)
 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.