Skip to content

Commit

Permalink
Returned to using jsoncpp in amalgamated form (no external lib depend…
Browse files Browse the repository at this point in the history
…ency)
  • Loading branch information
oscarkramer committed Sep 18, 2019
1 parent 6b35926 commit e2d1001
Show file tree
Hide file tree
Showing 11 changed files with 7,775 additions and 83 deletions.
23 changes: 0 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,6 @@ else( TIFF_FOUND )
message( FATAL_ERROR "Could not find required tiff package!" )
endif( TIFF_FOUND )

# JSONCPP - Required:
find_package( JsonCpp )
if( JSONCPP_FOUND )
include_directories( ${JSONCPP_INCLUDE_DIR} )
set( ossimDependentLibs ${ossimDependentLibs} ${JSONCPP_LIBRARY} )
message("Found JsonCpp" )
else( JSONCPP_FOUND )
message( FATAL_ERROR "Could not find required JsonCpp package!" )
endif( JSONCPP_FOUND )

# This caused a core dump on ossim executables running in jenins pipeline (ossim-test-dev)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
find_library( DL_LIBRARY dl )
Expand All @@ -134,17 +124,6 @@ endif() # if (CMAKE_SYSTEM_NAME MATCHES "Linux")
# endif( DL_LIBRARY )
#endif( UNIX )

# JSONCPP - Optional:
set( OSSIM_HAS_JSONCPP 0 )
find_package( JsonCpp )
if( JSONCPP_FOUND )
include_directories( ${JSONCPP_INCLUDE_DIR} )
set( ossimDependentLibs ${ossimDependentLibs} ${JSONCPP_LIBRARY} )
set( OSSIM_HAS_JSONCPP 1 )
else( JSONCPP_FOUND )
message("Could not find optional JSONCPP package! Consider installing this as it will soon become a required package." )
endif( JSONCPP_FOUND )

# FREETYPE - Optional:
set( OSSIM_HAS_FREETYPE 0 )
if( BUILD_OSSIM_FREETYPE_SUPPORT )
Expand Down Expand Up @@ -276,8 +255,6 @@ MESSAGE( STATUS "JPEG_LIBRARY = ${JPEG_LIBRARIES}" )
MESSAGE( STATUS "JPEG_INCLUDE = ${JPEG_INCLUDE_DIR}" )
MESSAGE( STATUS "OSSIM DEPENDENT LIBRARIES = ${ossimDependentLibs}" )
MESSAGE( STATUS "OSSIM_HAS_HDF5 = ${OSSIM_HAS_HDF5}" )
MESSAGE( STATUS "OSSIM_HAS_JSONCPP = ${OSSIM_HAS_JSONCPP}" )


#-----------------------------------------------------------------------------
# uninstall target
Expand Down
6 changes: 0 additions & 6 deletions apps/ossim-rpcgen/ossim-rpcgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ int main(int argc, char* argv[])
{
case JSON:
{
#if OSSIM_HAS_JSONCPP
if (outputFile)
jsonFile = outputFile;
else
Expand All @@ -210,11 +209,6 @@ int main(int argc, char* argv[])
write_ok = rpc->toJSON(jsonStream);
jsonStream.close();
}
#else
ossimNotify(ossimNotifyLevel_FATAL) << "ERROR: JSON output requested but JSON is not "
"available in this build! <"<< std::endl;
exit(1);
#endif
break;
}

Expand Down
32 changes: 0 additions & 32 deletions cmake/CMakeModules/FindJsonCpp.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion include/ossim/base/JsonInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef JsonInterface_HEADER
#define JsonInterface_HEADER 1

#include <json/json.h>
#include <ossim/json/json.h>

namespace ossim {

Expand Down
Loading

0 comments on commit e2d1001

Please sign in to comment.