From c010aa579ee46dfd6768fc2e4a8b17f972d1ab94 Mon Sep 17 00:00:00 2001 From: Sebastiaan Pierrot Date: Wed, 29 Jul 2015 15:15:47 +0200 Subject: [PATCH] cmake fix shared library disable broke the build on platforms other then windows and apple --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43630f7e2..b442a1fcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.