Cannot open include file: 'json.h': No such file or directory
espdev opened this issue · 4 comments
espdev commented
I'm trying to use your fine library, but I'm getting an error:
Cannot open include file: 'json.h': No such file or directory
I think this error is occurred because thirdparty header file json.h
has not been copied to include directory in cmake_install_prefix while INSTALL step.
I think you need to create a cmake config for standard CMake find_package mechanism for using your library as external dependency in other cmake-based projects. For example:
find_package(Splinter REQUIRED)
add_executable(MySplinesApp main.cpp)
target_include_directories(MySplinesApp ${SPLINTER_INCLUDE_DIRS})
target_link_libraries(MySplinesApp ${SPLINTER_LIBRARIES})
Thanks!
gablank commented
Thanks for your feedback. I agree, this is definitely something we should do. We are quite busy at the moment, but in the fall we intend to overhaul the library.
If you don't mind me asking, what do you use the library for, and what language do you use?