Skip to content

Commit

Permalink
Removed spdlog_vendor warnings (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit 4510d9a)
  • Loading branch information
ahcorde authored and mergify[bot] committed Apr 26, 2024
1 parent bd50030 commit 288b32a
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 288b32a

Please sign in to comment.