changeset 1344:c86ad9b58eed

jsoncpp lookup
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 Apr 2015 16:42:56 +0200
parents 72d1c2fc0edb
children c90a4a42a3f2
files Resources/CMake/JsonCppConfiguration.cmake
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/JsonCppConfiguration.cmake	Fri Apr 03 15:44:06 2015 +0200
+++ b/Resources/CMake/JsonCppConfiguration.cmake	Tue Apr 07 16:42:56 2015 +0200
@@ -23,7 +23,13 @@
     message(FATAL_ERROR "Please install the libjsoncpp-dev package")
   endif()
 
-  include_directories(/usr/include/jsoncpp)
+  find_path(JSONCPP_INCLUDE_DIR json/reader.h
+    /usr/include/jsoncpp
+    /usr/local/include/jsoncpp
+    )
+
+  message("JsonCpp include dir: ${JSONCPP_INCLUDE_DIR}")
+  include_directories(${JSONCPP_INCLUDE_DIR})
   link_libraries(jsoncpp)
 
 endif()