Navigation Menu

Skip to content

Commit

Permalink
Add PostgreSQL version to binary package file
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 29, 2015
1 parent cd5a6fb commit 1c7ab6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -15,6 +15,8 @@ add_subdirectory(vendor/groonga)

set(PGRN_POSTGRESQL_DIR "${CMAKE_INSTALL_PREFIX}"
CACHE PATH "PostgreSQL binary directory")
set(PGRN_POSTGRESQL_VERSION ""
CACHE PATH "PostgreSQL version")

set(PGRN_EXTENSION_DIR "lib")
set(PGRN_EXTENSION_DATA_DIR "share/extension")
Expand Down Expand Up @@ -74,5 +76,7 @@ set(CPACK_PACKAGE_VERSION_MAJOR "${PGRN_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PGRN_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PGRN_VERSION_MICRO}")
set(CPACK_PACKAGE_VENDOR "The PGroonga Project")
set(CPACK_PACKAGE_FILE_NAME
"${PGRN_PROJECT_ID}-${PGRN_VERSION}-postgresql-${PGRN_POSTGRESQL_VERSION}-${CMAKE_SYSTEM_NAME}")

include(CPack)
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -288,7 +288,8 @@ postgresql94-devel
sh("cmake",
"..",
"-G", cmake_generator,
"-DCMAKE_INSTALL_PREFIX=pgsql")
"-DCMAKE_INSTALL_PREFIX=pgsql",
"-DPGRN_POSTGRESQL_VERSION=#{windows_postgresql_version}")
sh("cmake",
"--build", ".",
"--config", "Release")
Expand Down

0 comments on commit 1c7ab6a

Please sign in to comment.