Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
dssp
Commits
f30c6fa2
Unverified
Commit
f30c6fa2
authored
Oct 07, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix writing version info
parent
2830267a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
CMakeLists.txt
+1
-1
changelog
+3
-0
libdssp/CMakeLists.txt
+10
-0
libdssp/src/dssp-io.cpp
+3
-3
No files found.
CMakeLists.txt
View file @
f30c6fa2
...
@@ -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"
)
...
...
changelog
View file @
f30c6fa2
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
...
...
libdssp/CMakeLists.txt
View file @
f30c6fa2
# 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
)
...
...
libdssp/src/dssp-io.cpp
View file @
f30c6fa2
...
@@ -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
=
k
libdssp
VersionNumber
;
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"
,
k
libdssp
VersionNumber
},
{
"date"
,
kRevisionDate
},
{
"date"
,
k
libdssp
RevisionDate
},
{
"classification"
,
"model annotation"
}
{
"classification"
,
"model annotation"
}
});
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment