FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mruby/cmake/modules/IntrospectSystem.cmake at master · DAddYE/mruby · GitHub
DAddYE
/
mruby
Public
forked from
mruby/mruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mruby
/
cmake
/
modules
/
IntrospectSystem.cmake
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (42 loc) · 1.38 KB
Breadcrumbs
mruby
/
cmake
/
modules
/
IntrospectSystem.cmake
Copy path
File metadata and controls
52 lines (42 loc) · 1.38 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
system capabilities checking
#
initial system defaults
if
(CMAKE_COMPILER_IS_GNUCC)
set
(MRUBY_DEFAULT_CFLAGS
"-std=gnu99 -Wall -Werror-implicit-function-declaration -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers -Wformat=2 -Wstrict-aliasing=2 -Wdisabled-optimization -Wpointer-arith -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wredundant-decls"
)
set
(
CMAKE_C_FLAGS
"
${MRUBY_DEFAULT_CFLAGS}
"
)
set
(
CMAKE_C_FLAGS_DEBUG
"-O3 -ggdb"
)
set
(
CMAKE_C_FLAGS_MINSIZEREL
"-Os -DNDEBUG"
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-O3 -g"
)
set
(
CMAKE_C_FLAGS_RELEASE
"-O3 -DNDEBUG"
)
set
(MRUBY_LIBS m)
else
()
if
(
MSVC
)
#
TODO default MSVC flags
add_definitions
(
-D_CRT_SECURE_NO_WARNINGS
-wd4018
#
suppress 'signed/unsigned mismatch'
)
endif
()
endif
()
if
(
MSVC
)
add_definitions
(
-DRUBY_EXPORT
#
required by oniguruma.h
)
endif
()
#
include helpers
include
(
CheckIncludeFile
)
include
(
CheckSymbolExists
)
#
header checks
CHECK_INCLUDE_FILE
(
string
.h
HAVE_STRING_H
)
if
(HAVE_STRING_H)
add_definitions
(
-DHAVE_STRING_H
)
endif
()
CHECK_INCLUDE_FILE
(
float.h
HAVE_FLOAT_H
)
if
(HAVE_FLOAT_H)
add_definitions
(
-DHAVE_FLOAT_H
)
endif
()
#
symbol checks
CHECK_SYMBOL_EXISTS
(
gettimeofday
sys/time.h
HAVE_GETTIMEOFDAY
)
if
(
NOT
HAVE_GETTIMEOFDAY)
add_definitions
(
-DNO_GETTIMEOFDAY
)
endif
()
#
vim: ts=2 sts=2 sw=2 et
Back
|
FazBrowse Home
|
New Git URL