Skip to content

Commit

Permalink
Merge pull request #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 Jun 3, 2024
2 parents 1f684e6 + a2e26fb commit 78b056c
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 78b056c

Please sign in to comment.