Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed spdlog_vendor warnings (backport #36) #37

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ find_package(spdlog 1.5.0 QUIET)
# spdlog needs to be told to do so explicitly.
set(BUILD_SHARED_LIBS TRUE CACHE BOOL "Build shared libraries")

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations ${CMAKE_CXX_FLAGS}")
endif()

ament_vendor(spdlog_vendor
SATISFIED ${spdlog_FOUND}
VCS_URL https://github.com/gabime/spdlog.git
VCS_VERSION v1.12.0
CMAKE_ARGS
-DSPDLOG_BUILD_TESTS:BOOL=OFF
-DSPDLOG_BUILD_EXAMPLE:BOOL=OFF
"-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}"
)

if(BUILD_TESTING)
Expand Down