Skip to content

Commit

Permalink
Merge pull request #212 from dean0x7d/fix_shared_lib
Browse files Browse the repository at this point in the history
Fix shared library build on OS X
  • Loading branch information
vitaut committed Oct 18, 2015
2 parents e81c0ae + 9608a98 commit 5405b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5405b09

Please sign in to comment.