From 9608a98b01995eb5258841aafc19371f112470e7 Mon Sep 17 00:00:00 2001 From: Dean Moldovan Date: Sun, 11 Oct 2015 04:07:38 +0200 Subject: [PATCH] Fix shared library build on OS X --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a4613e1..1fb4a707 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)