Skip to content

Commit

Permalink
Fix version variable name.
Browse files Browse the repository at this point in the history
The package version was not set correctly, which caused the cmake configuration files to be saved to a folder with blank version name.
  • Loading branch information
timfelle committed May 27, 2024
1 parent 46dcb62 commit 620ed6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ set ( USE_GNU_INSTALL_CONVENTION FALSE
# Set the package name to be specific to the compiler used, so that
# versions compiled with different compilers can be installed in parallel
string ( TOLOWER ${PROJECT_NAME}-${CMAKE_Fortran_COMPILER_ID} PACKAGE_NAME )
set ( PACKAGE_VERSION "${PACKAGE_NAME}-${VERSION}" )
set ( PACKAGE_VERSION "${PACKAGE_NAME}-${PROJECT_VERSION}" )

if (USE_GNU_INSTALL_CONVENTION)
include(GNUInstallDirs)
Expand Down

0 comments on commit 620ed6d

Please sign in to comment.