summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-03-06 00:51:05 +0400
committerkwolekr <kwolekr@minetest.net>2013-03-05 23:54:07 -0500
commitdd8593f2d6c1db06035be2e55a518109b74fc3b2 (patch)
treec7a57eef791f6234aca86e6b34fdd9e0b1c32b6e /cmake
parent5af8acfa6e41e258dd7e2135e8e75f03096c1d5c (diff)
downloadminetest-dd8593f2d6c1db06035be2e55a518109b74fc3b2.tar.gz
minetest-dd8593f2d6c1db06035be2e55a518109b74fc3b2.tar.bz2
minetest-dd8593f2d6c1db06035be2e55a518109b74fc3b2.zip
fix link if system json lib exists
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindJson.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/Modules/FindJson.cmake b/cmake/Modules/FindJson.cmake
index bc4e71a29..a9178a225 100644
--- a/cmake/Modules/FindJson.cmake
+++ b/cmake/Modules/FindJson.cmake
@@ -2,17 +2,17 @@
#FIND_PATH(JSON_INCLUDE_DIR json.h)
-#FIND_LIBRARY(JSON_LIBRARY NAMES json)
+#FIND_LIBRARY(JSON_LIBRARY NAMES jsoncpp)
#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 jsoncpp header file in ${JSON_INCLUDE_DIR}")
+# MESSAGE(STATUS "Found system jsoncpp 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 jsoncpp)
+ MESSAGE(STATUS "Using project jsoncpp library")
#ENDIF(JSON_FOUND)