mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-13 06:30:06 +00:00
Merge pull request #212 from dean0x7d/fix_shared_lib
Fix shared library build on OS X
This commit is contained in:
commit
5405b09ff4
@ -95,7 +95,7 @@ if (BIICODE)
|
||||
endif ()
|
||||
|
||||
add_library(cppformat ${FMT_SOURCES})
|
||||
if (BUILD_SHARED_LIBS)
|
||||
if (BUILD_SHARED_LIBS AND UNIX AND NOT APPLE)
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user