Skip to content

Commit

Permalink
Merge pull request wolfSSL#7611 from lealem47/gh7609
Browse files Browse the repository at this point in the history
cmake: Define SINGLE_THREADED macro when option enabled
  • Loading branch information
dgarske authored and jefferyq2 committed Jun 9, 2024
1 parent 70a4089 commit 6152404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ if(NOT WOLFSSL_SINGLE_THREADED)
"-DHAVE_PTHREAD"
"-D_POSIX_THREADS")
endif()
else()
list(APPEND WOLFSSL_DEFINITIONS "-DSINGLE_THREADED")
endif()

# DTLS-SRTP
Expand Down Expand Up @@ -2437,7 +2439,7 @@ if(WOLFSSL_EXAMPLES)
PROPERTY RUNTIME_OUTPUT_DIRECTORY
${WOLFSSL_OUTPUT_BASE}/examples/echoserver)

if(NOT WIN32)
if(NOT WIN32 AND NOT WOLFSSL_SINGLE_THREADED)
# Build TLS benchmark example
add_executable(tls_bench
${CMAKE_CURRENT_SOURCE_DIR}/examples/benchmark/tls_bench.c)
Expand Down

0 comments on commit 6152404

Please sign in to comment.