Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Illuna-Minetest
illuna-minetest
Commits
dd8593f2
Commit
dd8593f2
authored
12 years ago
by
proller
Committed by
kwolekr
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix link if system json lib exists
parent
5af8acfa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/Modules/FindJson.cmake
+5
-5
5 additions, 5 deletions
cmake/Modules/FindJson.cmake
src/json/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/json/CMakeLists.txt
with
7 additions
and
7 deletions
cmake/Modules/FindJson.cmake
+
5
−
5
View file @
dd8593f2
...
...
@@ -2,17 +2,17 @@
#FIND_PATH(JSON_INCLUDE_DIR json.h)
#FIND_LIBRARY(JSON_LIBRARY NAMES json)
#FIND_LIBRARY(JSON_LIBRARY NAMES json
cpp
)
#IF(JSON_LIBRARY AND JSON_INCLUDE_DIR)
# SET( JSON_FOUND TRUE )
#ENDIF(JSON_LIBRARY AND JSON_INCLUDE_DIR)
#IF(JSON_FOUND)
# MESSAGE(STATUS "Found system json header file in ${JSON_INCLUDE_DIR}")
# MESSAGE(STATUS "Found system json library ${JSON_LIBRARY}")
# MESSAGE(STATUS "Found system json
cpp
header file in ${JSON_INCLUDE_DIR}")
# MESSAGE(STATUS "Found system json
cpp
library ${JSON_LIBRARY}")
#ELSE(JSON_FOUND)
SET
(
JSON_INCLUDE_DIR
${
PROJECT_SOURCE_DIR
}
/json
)
SET
(
JSON_LIBRARY json
)
MESSAGE
(
STATUS
"Using project json library"
)
SET
(
JSON_LIBRARY json
cpp
)
MESSAGE
(
STATUS
"Using project json
cpp
library"
)
#ENDIF(JSON_FOUND)
This diff is collapsed.
Click to expand it.
src/json/CMakeLists.txt
+
2
−
2
View file @
dd8593f2
...
...
@@ -6,9 +6,9 @@ else( UNIX )
set
(
json_platform_LIBS
""
)
endif
(
UNIX
)
add_library
(
json
${
json_SRCS
}
)
add_library
(
json
cpp
${
json_SRCS
}
)
target_link_libraries
(
json
json
cpp
${
json_platform_LIBS
}
)
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