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
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
518cb0b3
Commit
518cb0b3
authored
2 years ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
cmake: Add SRB2_CONFIG_DEV_BUILD
parent
deaa82aa
No related branches found
No related tags found
1 merge request
!1837
cmake: Add SRB2_CONFIG_DEV_BUILD
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+6
-0
6 additions, 0 deletions
src/CMakeLists.txt
with
6 additions
and
0 deletions
src/CMakeLists.txt
+
6
−
0
View file @
518cb0b3
...
@@ -37,6 +37,8 @@ set(SRB2_CONFIG_YASM OFF CACHE BOOL
...
@@ -37,6 +37,8 @@ set(SRB2_CONFIG_YASM OFF CACHE BOOL
"Use YASM in place of NASM."
)
"Use YASM in place of NASM."
)
set
(
SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL
set
(
SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL
"Use statically linked OpenGL. NOT RECOMMENDED."
)
"Use statically linked OpenGL. NOT RECOMMENDED."
)
set
(
SRB2_CONFIG_DEV_BUILD OFF CACHE BOOL
"Compile a development build of SRB2."
)
### use internal libraries?
### use internal libraries?
if
(
${
CMAKE_SYSTEM
}
MATCHES
"Windows"
)
###set on Windows only
if
(
${
CMAKE_SYSTEM
}
MATCHES
"Windows"
)
###set on Windows only
...
@@ -255,6 +257,10 @@ endif()
...
@@ -255,6 +257,10 @@ endif()
set
(
CMAKE_C_FLAGS
${
CMAKE_C_FLAGS
}
-Wno-trigraphs
)
set
(
CMAKE_C_FLAGS
${
CMAKE_C_FLAGS
}
-Wno-trigraphs
)
if
(
${
SRB2_CONFIG_DEV_BUILD
}
)
target_compile_definitions
(
SRB2SDL2 PRIVATE -DDEVELOP
)
endif
()
target_compile_definitions
(
SRB2SDL2 PRIVATE -DCMAKECONFIG
)
target_compile_definitions
(
SRB2SDL2 PRIVATE -DCMAKECONFIG
)
#add_library(SRB2Core STATIC
#add_library(SRB2Core STATIC
...
...
This diff is collapsed.
Click to expand it.
Eidolon
@ShaderWraith
mentioned in commit
9277870f
·
2 years ago
mentioned in commit
9277870f
mentioned in commit 9277870fa2b62aa7984a9a95f9bfe8d94c9268f5
Toggle commit list
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