Skip to content

Commit

Permalink
Shorten lines for cmake-format
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 9, 2024
1 parent f9a49b8 commit d4323fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/tpls/DyninstBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ if(NOT TARGET Dyninst::Boost)
INTERFACE ${Boost_INCLUDE_DIRS})
target_compile_definitions(Dyninst::Boost_headers
INTERFACE BOOST_MULTI_INDEX_DISABLE_SERIALIZATION)
if(CMAKE_CXX_COMPILER_ID STREQUAL Clang AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 17)
set(_id CMAKE_CXX_COMPILER_ID)
set(_ver CMAKE_CXX_COMPILER_VERSION)
if(${_id} STREQUAL Clang AND ${_ver} VERSION_GREATER 17)
target_compile_options(Dyninst::Boost_headers INTERFACE -Wno-deprecated-declarations)
endif()
endif()
Expand Down

0 comments on commit d4323fe

Please sign in to comment.