Skip to content

Commit f7aedc5

Browse files
vedranmileticvitaut
authored andcommitted
Fix shared build on Solaris
1 parent 840a817 commit f7aedc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ set_target_properties(fmt PROPERTIES
185185
DEBUG_POSTFIX d)
186186

187187
if (BUILD_SHARED_LIBS)
188-
if (UNIX AND NOT APPLE)
188+
if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
189189
# Fix rpmlint warning:
190190
# unused-direct-shlib-dependency /usr/lib/libformat.so.1.1.0 /lib/libm.so.6.
191191
target_link_libraries(fmt -Wl,--as-needed)

0 commit comments

Comments
 (0)