Giter Club home page Giter Club logo

gelfcpp's People

Contributors

daejiv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gelfcpp's Issues

CMake Error when integrating in my project

Hi !
Thank you for your work.

I do have a project in which i'm creating a static library.
In my CMakeLists.txt file, i'm adding the following as per the documentation

set(GELFCPP_AS_SUBPROJECT 1)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/gelfcpp)

then modyfing my targets

target_link_libraries(nt PRIVATE Threads::Threads gelfcpp restc-cpp ssl crypto z boost_iostreams boost_log ${Boost_LIBRARIES})

target_include_directories( nt PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)


install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/nt/log.h ${CMAKE_CURRENT_SOURCE_DIR}/include/nt/dcs.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/nt)

install(TARGETS nt gelfcpp gelfcpp_boost gelfcpp_rapidjson EXPORT my_export DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/nt)

install(EXPORT my_export FILE nt-config.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/nt)

but i have the following error

CMAKE_INSTALL_PREFIX = /usr/local
-- Configuring done
CMake Error in nt/thirdparty/gelfcpp/CMakeLists.txt:
  Target "gelfcpp" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/home/pierre/Documents/Git/Libnt/nt/thirdparty/gelfcpp/include"

  which is prefixed in the source directory.


CMake Error in nt/thirdparty/gelfcpp/dep/rapidjson/CMakeLists.txt:
  Target "gelfcpp_rapidjson" INTERFACE_INCLUDE_DIRECTORIES property contains
  path:

    "/home/pierre/Documents/Git/Libnt/nt/thirdparty/gelfcpp/dep/rapidjson/rapidjson/include"

  which is prefixed in the source directory.


CMake Error in nt/thirdparty/gelfcpp/CMakeLists.txt:
  Target "gelfcpp" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/home/pierre/Documents/Git/Libnt/nt/thirdparty/gelfcpp/include"

  which is prefixed in the source directory.


CMake Error in nt/thirdparty/gelfcpp/dep/rapidjson/CMakeLists.txt:
  Target "gelfcpp_rapidjson" INTERFACE_INCLUDE_DIRECTORIES property contains
  path:

    "/home/pierre/Documents/Git/Libnt/nt/thirdparty/gelfcpp/dep/rapidjson/rapidjson/include"

  which is prefixed in the source directory.

Can you please help me on this ?
(i'm new to Cmake)

Regards,
Pierre

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.