Fix shared build on Solaris

This commit is contained in:
Vedran Miletić 2019-09-19 21:25:43 +02:00 committed by Victor Zverovich
parent 840a817ed2
commit f7aedc5fc4

View File

@ -185,7 +185,7 @@ set_target_properties(fmt PROPERTIES
DEBUG_POSTFIX d)
if (BUILD_SHARED_LIBS)
if (UNIX AND NOT APPLE)
if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
# Fix rpmlint warning:
# unused-direct-shlib-dependency /usr/lib/libformat.so.1.1.0 /lib/libm.so.6.
target_link_libraries(fmt -Wl,--as-needed)