Skip to content

Commit

Permalink
Fix shared build on Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
vedranmiletic authored and vitaut committed Sep 19, 2019
1 parent 840a817 commit f7aedc5
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 @@ -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)
Expand Down

0 comments on commit f7aedc5

Please sign in to comment.