ossimlabs / ossim

Core OSSIM (Open Source Software Image Map) package including C++ code for OSSIM library, command-line applications, tests, and build system
MIT License
296 stars 142 forks source link

Fails to find JsonCpp on FreeBSD #214

Closed yurivict closed 5 years ago

yurivict commented 5 years ago

It needs this patch:

--- cmake/CMakeModules/FindJsonCpp.cmake.orig   2019-03-14 03:58:28 UTC
+++ cmake/CMakeModules/FindJsonCpp.cmake
@@ -16,7 +16,7 @@ set(JSONCPP_FOUND "NO")
 set(OSSIM_HAS_JSONCPP 0)

 find_path( JSONCPP_INCLUDE_DIR json/json.h
-          PATHS /usr/include/jsoncpp )
+          PATHS ${CMAKE_INSTALL_PREFIX}/include/jsoncpp )

 find_library( JSONCPP_LIBRARY NAMES "jsoncpp")
BlackFrog1 commented 5 years ago

Did you install the jsoncpp library on your FreeBSD system:

yurivict commented 5 years ago

Yes, it is installed, but the directory should be ${CMAKE_INSTALL_PREFIX}, not /usr.

gpotts commented 5 years ago

I am going to add it to the list. There are other search paths. Will check it in in a minute

gpotts commented 5 years ago

Checked in a modification to add the ${CMAKE_INSTALL_PREFIX}/include/jsoncpp to 0ur current search path. Can you update and try again?

yurivict commented 5 years ago

6f259a9 now finds JsocCpp okay. Could you please make a release?