Browse Source

fixed jsoncpp find_path

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
b6cb2a87ee
  1. 7
      CMakeLists.txt
  2. 2
      alethzero/NatspecHandler.h
  3. 3
      cmake/FindJsoncpp.cmake
  4. 2
      libsolidity/ASTJsonConverter.h
  5. 2
      libsolidity/InterfaceHandler.h
  6. 2
      test/SolidityABIJSON.cpp
  7. 2
      test/SolidityNatspecJSON.cpp

7
CMakeLists.txt

@ -135,15 +135,15 @@ endif()
add_subdirectory(libdevcore) add_subdirectory(libdevcore)
add_subdirectory(libevmcore) add_subdirectory(libevmcore)
add_subdirectory(liblll) add_subdirectory(liblll)
if (NOT ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")) if (NOT ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC"))
add_subdirectory(libserpent) add_subdirectory(libserpent)
add_subdirectory(sc)
endif () endif ()
add_subdirectory(libsolidity) add_subdirectory(libsolidity)
add_subdirectory(lllc) add_subdirectory(lllc)
add_subdirectory(solc) add_subdirectory(solc)
if (NOT ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC"))
add_subdirectory(sc)
endif()
if (JSONRPC) if (JSONRPC)
add_subdirectory(libweb3jsonrpc) add_subdirectory(libweb3jsonrpc)
@ -161,6 +161,7 @@ add_subdirectory(libethereum)
add_subdirectory(libwebthree) add_subdirectory(libwebthree)
add_subdirectory(test) add_subdirectory(test)
add_subdirectory(eth) add_subdirectory(eth)
if("x${CMAKE_BUILD_TYPE}" STREQUAL "xDebug") if("x${CMAKE_BUILD_TYPE}" STREQUAL "xDebug")
add_subdirectory(exp) add_subdirectory(exp)
endif () endif ()

2
alethzero/NatspecHandler.h

@ -26,7 +26,7 @@
#pragma warning(disable: 4100 4267) #pragma warning(disable: 4100 4267)
#include <leveldb/db.h> #include <leveldb/db.h>
#pragma warning(pop) #pragma warning(pop)
#include <jsoncpp/json/json.h> #include <json/json.h>
#include <libdevcore/FixedHash.h> #include <libdevcore/FixedHash.h>
namespace ldb = leveldb; namespace ldb = leveldb;

3
cmake/FindJsoncpp.cmake

@ -12,7 +12,8 @@
# only look in default directories # only look in default directories
find_path( find_path(
JSONCPP_INCLUDE_DIR JSONCPP_INCLUDE_DIR
NAMES jsoncpp/json/json.h NAMES json/json.h
PATH_SUFFIXES jsoncpp
DOC "jsoncpp include dir" DOC "jsoncpp include dir"
) )

2
libsolidity/ASTJsonConverter.h

@ -27,7 +27,7 @@
#include <libsolidity/ASTVisitor.h> #include <libsolidity/ASTVisitor.h>
#include <libsolidity/Exceptions.h> #include <libsolidity/Exceptions.h>
#include <libsolidity/Utils.h> #include <libsolidity/Utils.h>
#include <jsoncpp/json/json.h> #include <json/json.h>
namespace dev namespace dev
{ {

2
libsolidity/InterfaceHandler.h

@ -28,7 +28,7 @@
#include <string> #include <string>
#include <memory> #include <memory>
#include <jsoncpp/json/json.h> #include <json/json.h>
namespace dev namespace dev
{ {

2
test/SolidityABIJSON.cpp

@ -22,7 +22,7 @@
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <libsolidity/CompilerStack.h> #include <libsolidity/CompilerStack.h>
#include <jsoncpp/json/json.h> #include <json/json.h>
#include <libdevcore/Exceptions.h> #include <libdevcore/Exceptions.h>
namespace dev namespace dev

2
test/SolidityNatspecJSON.cpp

@ -21,7 +21,7 @@
*/ */
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <jsoncpp/json/json.h> #include <json/json.h>
#include <libsolidity/CompilerStack.h> #include <libsolidity/CompilerStack.h>
#include <libsolidity/Exceptions.h> #include <libsolidity/Exceptions.h>
#include <libdevcore/Exceptions.h> #include <libdevcore/Exceptions.h>

Loading…
Cancel
Save