Skip to content

Commit 78b056c

Browse files
authored
Merge pull request #7611 from lealem47/gh7609
cmake: Define SINGLE_THREADED macro when option enabled
2 parents 1f684e6 + a2e26fb commit 78b056c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ if(NOT WOLFSSL_SINGLE_THREADED)
284284
"-DHAVE_PTHREAD"
285285
"-D_POSIX_THREADS")
286286
endif()
287+
else()
288+
list(APPEND WOLFSSL_DEFINITIONS "-DSINGLE_THREADED")
287289
endif()
288290

289291
# DTLS-SRTP
@@ -2437,7 +2439,7 @@ if(WOLFSSL_EXAMPLES)
24372439
PROPERTY RUNTIME_OUTPUT_DIRECTORY
24382440
${WOLFSSL_OUTPUT_BASE}/examples/echoserver)
24392441

2440-
if(NOT WIN32)
2442+
if(NOT WIN32 AND NOT WOLFSSL_SINGLE_THREADED)
24412443
# Build TLS benchmark example
24422444
add_executable(tls_bench
24432445
${CMAKE_CURRENT_SOURCE_DIR}/examples/benchmark/tls_bench.c)

0 commit comments

Comments
 (0)