1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

cmake fix shared library disable broke the build on platforms other then windows and apple

This commit is contained in:
Sebastiaan Pierrot 2015-07-29 15:15:47 +02:00
parent 3ae1badae7
commit c010aa579e

View file

@ -445,9 +445,11 @@ elseif(APPLE)
set_property(TARGET websockets_shared PROPERTY MACOSX_RPATH YES)
endif()
else()
set_target_properties(websockets_shared
PROPERTIES
OUTPUT_NAME websockets)
if (LWS_WITH_SHARED)
set_target_properties(websockets_shared
PROPERTIES
OUTPUT_NAME websockets)
endif()
endif()
# Set the so version of the lib.