index
:
minetest.git
gpcf
lifo-fixes
release
modified minetest for gpcfs purposes
gpcf
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
games
/
devtest
/
mods
/
modchannels
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
includ
# Look for JSONCPP if asked to.
# We use a bundled version by default because some distros ship versions of
# JSONCPP that cause segfaults and other memory errors when we link with them.
# See https://github.com/minetest/minetest/issues/1793
mark_as_advanced
(
JSON_LIBRARY JSON_INCLUDE_DIR
)
option
(
ENABLE_SYSTEM_JSONCPP
"Enable using a system-wide JSONCPP. May cause segfaults and other memory errors!"
FALSE
)
if
(
ENABLE_SYSTEM_JSONCPP
)
find_library
(
JSON_LIBRARY NAMES
jsoncpp
)
find_path
(
JSON_INCLUDE_DIR
json
/
features
.
h
PATH_SUFFIXES
jsoncpp
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
JSONCPP DEFAULT_MSG JSON_LIBRARY JSON_INCLUDE_DIR
)
if
(
JSONCPP_FOUND
)
message
(
STATUS
"Using system JSONCPP library."
)
endif
()
endif
()
if
(
NOT JSONCPP_FOUND
)
message
(
STATUS
"Using bundled JSONCPP library."
Diffstat
(limited to 'games/devtest/mods/modchannels')
0 files changed, 0 insertions, 0 deletions