Commit f30c6fa2 by Maarten L. Hekkelman

Fix writing version info

parent 2830267a
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
cmake_minimum_required(VERSION 3.23) cmake_minimum_required(VERSION 3.23)
# set the project name # set the project name
project(mkdssp VERSION 4.4.7 LANGUAGES CXX) project(mkdssp VERSION 4.4.8 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
......
Version 4.4.8
- Fix writing version numbers
Version 4.4.7 Version 4.4.7
- Fix cmakefile to use system installed libraries by default - Fix cmakefile to use system installed libraries by default
......
# Use the version of the parent list file, if any. May need a fix someday.
if(NOT CMAKE_PARENT_LIST_FILE)
set(PROJECT_VERSION 4.4.8)
endif()
project(libdssp VERSION ${PROJECT_VERSION})
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
# We do not want to write an export file for all our symbols... # We do not want to write an export file for all our symbols...
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
# Create a revision file, containing the current git version info
write_version_header("${CMAKE_CURRENT_SOURCE_DIR}/src" LIB_NAME libdssp)
# The DSSP code is in a separate library, optionally to be used by others # The DSSP code is in a separate library, optionally to be used by others
add_library(dssp) add_library(dssp)
add_library(dssp::dssp ALIAS dssp) add_library(dssp::dssp ALIAS dssp)
......
...@@ -157,7 +157,7 @@ void writeDSSP(const dssp &dssp, std::ostream &os) ...@@ -157,7 +157,7 @@ void writeDSSP(const dssp &dssp, std::ostream &os)
std::time_t today = system_clock::to_time_t(system_clock::now()); std::time_t today = system_clock::to_time_t(system_clock::now());
std::tm *tm = std::gmtime(&today); std::tm *tm = std::gmtime(&today);
std::string version = kVersionNumber; std::string version = klibdsspVersionNumber;
if (version.length() < 10) if (version.length() < 10)
version.insert(version.end(), 10 - version.length(), ' '); version.insert(version.end(), 10 - version.length(), ' ');
...@@ -879,8 +879,8 @@ void annotateDSSP(cif::datablock &db, const dssp &dssp, bool writeOther, bool wr ...@@ -879,8 +879,8 @@ void annotateDSSP(cif::datablock &db, const dssp &dssp, bool writeOther, bool wr
software.emplace({ software.emplace({
{ "pdbx_ordinal", software.get_unique_id("") }, { "pdbx_ordinal", software.get_unique_id("") },
{ "name", "dssp" }, { "name", "dssp" },
{ "version", kVersionNumber }, { "version", klibdsspVersionNumber },
{ "date", kRevisionDate }, { "date", klibdsspRevisionDate },
{ "classification", "model annotation" } { "classification", "model annotation" }
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment