Skip to content

Commit

Permalink
Always pass CMAKE_CXX_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbianco committed Sep 16, 2024
1 parent df12a4f commit a0f1207
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ AddDependency(NAME docopt
DEFAULT ON
GIT_URL https://github.com/docopt/docopt.cpp.git
GIT_TAG 3dd23e3280f213bacefdf5fcb04857bf52e90917)

set(SPDLOG_CXX_FLAGS "")

# `spdlog` transitively uses a deprecated `stdext::checked_array_iterator`
set(SPDLOG_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
if(MSVC)
set(SPDLOG_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING")
set(SPDLOG_CXX_FLAGS "${SPDLOG_CXX_FLAGS} /D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING")
endif()

AddDependency(NAME spdlog
Expand Down

0 comments on commit a0f1207

Please sign in to comment.