rising-gods / gelfcpp Goto Github PK
View Code? Open in Web Editor NEWLibrary for sending Graylog Extended Log Format (GELF) messages from C++ applications.
License: MIT License
Library for sending Graylog Extended Log Format (GELF) messages from C++ applications.
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.