Skip to content

Commit

Permalink
Silenced boost obsolete warning caused by libzypp
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Jan 13, 2021
1 parent ac74ddd commit a1646ca
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ set( SOURCES
YQPatternSelector.cc
YQSimplePatchSelector.cc
YQPackageSelectorPluginImpl.cc

YQPkgChangeLogView.cc
YQPkgChangesDialog.cc
YQPkgClassFilterView.cc
Expand Down Expand Up @@ -81,7 +81,7 @@ set( SOURCES
YQPkgTextDialog.cc
YQPkgUpdateProblemFilterView.cc
YQPkgVersionsView.cc

YQIconPool.cc
QY2LayoutUtils.cc
)
Expand All @@ -94,7 +94,7 @@ set( HEADERS
YQPatternSelector.h
YQSimplePatchSelector.h
YQPackageSelectorPlugin.h

YQPkgChangeLogView.h
YQPkgChangesDialog.h
YQPkgClassFilterView.h
Expand Down Expand Up @@ -131,7 +131,7 @@ set( HEADERS
YQPkgTextDialog.h
YQPkgUpdateProblemFilterView.h
YQPkgVersionsView.h

QY2LayoutUtils.h
YQIconPool.h
YQZypp.h
Expand All @@ -155,6 +155,12 @@ add_library( ${TARGETLIB} SHARED
target_include_directories( ${TARGETLIB} BEFORE PUBLIC ../../libyui/include )
target_include_directories( ${TARGETLIB} BEFORE PUBLIC ../../libyui-qt/include )


# Workaround for boost::bind() complaining about deprecated _1 placeholder
# deep in the libzypp headers
target_compile_definitions( ${TARGETLIB} PUBLIC BOOST_BIND_GLOBAL_PLACEHOLDERS=1 )


# Libraries that are needed to build this shared lib
target_link_libraries( ${TARGETLIB}
yui
Expand Down

0 comments on commit a1646ca

Please sign in to comment.