Skip to content

Commit fa42398

Browse files
committed
now has appropriate rules for shared and static targets
1 parent e8cc94c commit fa42398

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@ if (LWS_WITH_SECURE_STREAMS)
164164
endif()
165165
add_subdir_include_dirs(secure-streams/serialized/client)
166166

167-
if (WIN32)
168-
set_target_properties(websockets PROPERTIES DEBUG_POSTFIX d)
169-
endif()
170-
171167
if (LWS_WITH_STATIC)
172168
if (LWS_STATIC_PIC)
173169
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
@@ -194,6 +190,10 @@ if (LWS_WITH_STATIC)
194190
OUTPUT_NAME websockets_static)
195191
endif()
196192

193+
if (LWS_APPEND_DEBUG_SUFFIX_D)
194+
set_target_properties(websockets PROPERTIES DEBUG_POSTFIX d)
195+
endif()
196+
197197
endif()
198198

199199
if (LWS_WITH_SHARED)
@@ -244,6 +244,10 @@ if (LWS_WITH_SHARED)
244244
endif()
245245
endif()
246246

247+
if (LWS_APPEND_DEBUG_SUFFIX_D)
248+
set_target_properties(websockets_shared PROPERTIES DEBUG_POSTFIX d)
249+
endif()
250+
247251
endif()
248252

249253
#

0 commit comments

Comments
 (0)