Skip to content

Commit

Permalink
Fix rpmlint warning about unused dependency on libm.so.6
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jul 10, 2015
1 parent 6cf24c7 commit e498ffb
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 @@ -90,6 +90,11 @@ if (BIICODE)
endif ()

add_library(cppformat ${FMT_SOURCES})
if (BUILD_SHARED_LIBS)
# Fix rpmlint warning:
# unused-direct-shlib-dependency /usr/lib/libformat.so.1.1.0 /lib/libm.so.6.
target_link_libraries(cppformat -Wl,--as-needed)
endif ()
if (FMT_PEDANTIC AND CMAKE_COMPILER_IS_GNUCXX)
set_target_properties(cppformat PROPERTIES COMPILE_FLAGS
"-Wall -Wextra -Wshadow -pedantic")
Expand Down

0 comments on commit e498ffb

Please sign in to comment.