Skip to content

windows-specific install options #3357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ endif()
if (MSVC)
option(LWS_MSVC_STATIC_RUNTIME "Link to static MSVC runtime" OFF)
endif()
if (WIN32)
option(LWS_APPEND_DEBUG_SUFFIX_D "Append 'd' to library name when CMAKE_BUILD_TYPE=Debug" OFF)
endif()

#
# to use miniz, enable both LWS_WITH_ZLIB and LWS_WITH_MINIZ
Expand Down
2 changes: 1 addition & 1 deletion READMEs/README.coding.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ one after the other and gets the same benefit from the same code.
Isolating and collating the protocol code in one place also makes it very easy
to maintain and understand.

So it if highly recommended you put your protocol-specific code into the
So it is highly recommended you put your protocol-specific code into the
form of a "plugin" at the source level, even if you have no immediate plan to
use it dynamically-loaded.

Expand Down
8 changes: 8 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ if (LWS_WITH_STATIC)
OUTPUT_NAME websockets_static)
endif()

if (LWS_APPEND_DEBUG_SUFFIX_D)
set_target_properties(websockets PROPERTIES DEBUG_POSTFIX d)
endif()

endif()

if (LWS_WITH_SHARED)
Expand Down Expand Up @@ -240,6 +244,10 @@ if (LWS_WITH_SHARED)
endif()
endif()

if (LWS_APPEND_DEBUG_SUFFIX_D)
set_target_properties(websockets_shared PROPERTIES DEBUG_POSTFIX d)
endif()

endif()

#
Expand Down