Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fancy2209
SRB2
Commits
420a27ce
Commit
420a27ce
authored
9 years ago
by
Inuyasha
Browse files
Options
Downloads
Patches
Plain Diff
Attempt to play nice to cmake.
parent
ff21b571
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
src/comptime.c
+1
-1
1 addition, 1 deletion
src/comptime.c
src/config.h.in
+1
-0
1 addition, 0 deletions
src/config.h.in
with
4 additions
and
2 deletions
CMakeLists.txt
+
2
−
1
View file @
420a27ce
...
...
@@ -103,7 +103,8 @@ set(GIT_EXECUTABLE "git" CACHE FILEPATH "Path to git binary")
include
(
GitUtilities
)
git_describe
(
SRB2_GIT_DESCRIBE
"
${
CMAKE_SOURCE_DIR
}
"
)
git_current_branch
(
SRB2_GIT_BRANCH
"
${
CMAKE_SOURCE_DIR
}
"
)
set
(
SRB2_COMP_REVISION
"
${
SRB2_GIT_DESCRIBE
}
-<
${
SRB2_GIT_BRANCH
}
>"
)
set
(
SRB2_COMP_BRANCH
"
${
SRB2_GIT_BRANCH
}
"
)
set
(
SRB2_COMP_REVISION
"
${
SRB2_GIT_DESCRIBE
}
"
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/config.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/src/config.h
)
##### PACKAGE CONFIGURATION #####
...
...
This diff is collapsed.
Click to expand it.
src/comptime.c
+
1
−
1
View file @
420a27ce
...
...
@@ -9,7 +9,7 @@
#if (defined(CMAKECONFIG))
#include
"config.h"
const
char
*
compbranch
=
""
;
// hell if I know what to do with cmake
const
char
*
compbranch
=
SRB2_COMP_BRANCH
;
const
char
*
comprevision
=
SRB2_COMP_REVISION
;
#elif (defined(COMPVERSION))
...
...
This diff is collapsed.
Click to expand it.
src/config.h.in
+
1
−
0
View file @
420a27ce
...
...
@@ -18,6 +18,7 @@
#define ASSET_HASH_PATCH_DTA "${SRB2_ASSET_patch.dta_HASH}"
#define SRB2_COMP_REVISION "${SRB2_COMP_REVISION}"
#define SRB2_COMP_BRANCH "${SRB2_COMP_BRANCH}"
#define SRB2_GIT_DESCRIBE "${SRB2_GIT_DESCRIBE}"
#define SRB2_GIT_BRANCH "${SRB2_GIT_BRANCH}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment