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
31c41065
Commit
31c41065
authored
4 years ago
by
Golden
Browse files
Options
Downloads
Patches
Plain Diff
Add multithreading option for CMake
parent
7952408c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1204
Add multithreading option for CMake
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CMakeLists.txt
+2
-0
2 additions, 0 deletions
src/CMakeLists.txt
src/sdl/CMakeLists.txt
+6
-0
6 additions, 0 deletions
src/sdl/CMakeLists.txt
with
8 additions
and
0 deletions
src/CMakeLists.txt
+
2
−
0
View file @
31c41065
...
...
@@ -231,6 +231,8 @@ set(SRB2_CONFIG_HAVE_OPENMPT ON CACHE BOOL
"Enable OpenMPT support."
)
set
(
SRB2_CONFIG_HAVE_CURL ON CACHE BOOL
"Enable curl support, used for downloading files via HTTP."
)
set
(
SRB2_CONFIG_HAVE_THREADS ON CACHE BOOL
"Enable multithreading support."
)
if
(
${
CMAKE_SYSTEM
}
MATCHES Windows
)
set
(
SRB2_CONFIG_HAVE_MIXERX ON CACHE BOOL
"Enable SDL Mixer X support."
)
...
...
This diff is collapsed.
Click to expand it.
src/sdl/CMakeLists.txt
+
6
−
0
View file @
31c41065
...
...
@@ -55,6 +55,12 @@ set(SRB2_SDL2_HEADERS
sdlmain.h
)
if
(
${
SRB2_CONFIG_HAVE_THREADS
}
)
set
(
SRB2_HAVE_THREADS ON
)
set
(
SRB2_SDL2_SOURCES
${
SRB2_SDL2_SOURCES
}
i_threads.c
)
add_definitions
(
-DHAVE_THREADS
)
endif
()
source_group
(
"Interface Code"
FILES
${
SRB2_SDL2_SOURCES
}
${
SRB2_SDL2_HEADERS
}
)
# Dependency
...
...
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