Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
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
libcifpp
Commits
23d82beb
Commit
23d82beb
authored
Oct 30, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix version string
parent
19db5d73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cmake/VersionString.cmake
+3
-3
No files found.
cmake/VersionString.cmake
View file @
23d82beb
...
@@ -42,14 +42,14 @@ function(write_version_header)
...
@@ -42,14 +42,14 @@ function(write_version_header)
set
(
BUILD_VERSION_STRING
"no git info available"
)
set
(
BUILD_VERSION_STRING
"no git info available"
)
endif
()
endif
()
include_directories
(
${
CMAKE
_BINARY_DIR
}
PRIVATE
)
include_directories
(
${
PROJECT
_BINARY_DIR
}
PRIVATE
)
string
(
TIMESTAMP BUILD_DATE_TIME
"%Y-%m-%dT%H:%M:%SZ"
UTC
)
string
(
TIMESTAMP BUILD_DATE_TIME
"%Y-%m-%dT%H:%M:%SZ"
UTC
)
if
(
ARGC GREATER 0
)
if
(
ARGC GREATER 0
)
set
(
VAR_PREFIX
"
${
ARGV0
}
"
)
set
(
VAR_PREFIX
"
${
ARGV0
}
"
)
endif
()
endif
()
file
(
WRITE
"
${
CMAKE
_BINARY_DIR
}
/revision.hpp.in"
[[// Generated revision file
file
(
WRITE
"
${
PROJECT
_BINARY_DIR
}
/revision.hpp.in"
[[// Generated revision file
#pragma once
#pragma once
...
@@ -72,6 +72,6 @@ inline void write_version_string(std::ostream &os, bool verbose)
...
@@ -72,6 +72,6 @@ inline void write_version_string(std::ostream &os, bool verbose)
}
}
}
}
]]
)
]]
)
configure_file
(
"
${
CMAKE_BINARY_DIR
}
/revision.hpp.in"
"
${
CMAKE
_BINARY_DIR
}
/revision.hpp"
@ONLY
)
configure_file
(
"
${
PROJECT_BINARY_DIR
}
/revision.hpp.in"
"
${
PROJECT
_BINARY_DIR
}
/revision.hpp"
@ONLY
)
endfunction
()
endfunction
()
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