mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-12 06:37:28 +00:00
Fix rpmlint warning about unused dependency on libm.so.6
This commit is contained in:
parent
6cf24c7f92
commit
e498ffbb3d
@ -90,6 +90,11 @@ if (BIICODE)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_library(cppformat ${FMT_SOURCES})
|
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)
|
if (FMT_PEDANTIC AND CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set_target_properties(cppformat PROPERTIES COMPILE_FLAGS
|
set_target_properties(cppformat PROPERTIES COMPILE_FLAGS
|
||||||
"-Wall -Wextra -Wshadow -pedantic")
|
"-Wall -Wextra -Wshadow -pedantic")
|
||||||
|
Loading…
Reference in New Issue
Block a user