Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kart-Public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrew Bradley
Kart-Public
Commits
1c55daef
Commit
1c55daef
authored
6 years ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
CMake: have funny check for empty CMAKE_SIZEOF_VOID_P
parent
49dddf54
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-3
8 additions, 3 deletions
CMakeLists.txt
with
8 additions
and
3 deletions
CMakeLists.txt
+
8
−
3
View file @
1c55daef
...
...
@@ -54,14 +54,19 @@ macro(copy_files_to_build_dir target dlllist_var)
endif
()
endmacro
()
#
64-
bit check
message
(
STATUS
"CMAKE_SIZEOF_VOID_P="
${
CMAKE_SIZEOF_VOID_P
}
)
# bit
ness
check
set
(
SRB2_SYSTEM_BITS 0
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
message
(
STATUS
"Target is 64-bit"
)
set
(
SRB2_SYSTEM_BITS 64
)
else
()
endif
()
if
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
message
(
STATUS
"Target is 32-bit"
)
set
(
SRB2_SYSTEM_BITS 32
)
endif
()
if
(
${
SRB2_SYSTEM_BITS
}
EQUAL 0
)
message
(
STATUS
"Target bitness is unknown"
)
endif
()
# OS macros
if
(
UNIX
)
...
...
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