File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,9 @@ endif()
394
394
if (MSVC )
395
395
option (LWS_MSVC_STATIC_RUNTIME "Link to static MSVC runtime" OFF )
396
396
endif ()
397
+ if (WIN32 )
398
+ option (LWS_APPEND_DEBUG_SUFFIX_D "Append 'd' to library name when CMAKE_BUILD_TYPE=Debug" OFF )
399
+ endif ()
397
400
398
401
#
399
402
# to use miniz, enable both LWS_WITH_ZLIB and LWS_WITH_MINIZ
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ one after the other and gets the same benefit from the same code.
31
31
Isolating and collating the protocol code in one place also makes it very easy
32
32
to maintain and understand.
33
33
34
- So it if highly recommended you put your protocol-specific code into the
34
+ So it is highly recommended you put your protocol-specific code into the
35
35
form of a "plugin" at the source level, even if you have no immediate plan to
36
36
use it dynamically-loaded.
37
37
Original file line number Diff line number Diff line change @@ -190,6 +190,10 @@ if (LWS_WITH_STATIC)
190
190
OUTPUT_NAME websockets_static )
191
191
endif ()
192
192
193
+ if (LWS_APPEND_DEBUG_SUFFIX_D )
194
+ set_target_properties (websockets PROPERTIES DEBUG_POSTFIX d )
195
+ endif ()
196
+
193
197
endif ()
194
198
195
199
if (LWS_WITH_SHARED )
@@ -240,6 +244,10 @@ if (LWS_WITH_SHARED)
240
244
endif ()
241
245
endif ()
242
246
247
+ if (LWS_APPEND_DEBUG_SUFFIX_D )
248
+ set_target_properties (websockets_shared PROPERTIES DEBUG_POSTFIX d )
249
+ endif ()
250
+
243
251
endif ()
244
252
245
253
#
You can’t perform that action at this time.
0 commit comments