diff options
Diffstat (limited to 'demo/async')
| -rw-r--r-- | demo/async/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/demo/async/CMakeLists.txt b/demo/async/CMakeLists.txt index 614bcfc3..ef9311bf 100644 --- a/demo/async/CMakeLists.txt +++ b/demo/async/CMakeLists.txt @@ -7,7 +7,7 @@ # file was obtained (LICENSE.txt). A copy of the license may also be # found online at https://opensource.org/licenses/MIT. -cmake_minimum_required (VERSION 2.8.7) +cmake_minimum_required (VERSION 2.8.12) project(nng-asyncdemo) @@ -16,9 +16,12 @@ set(PARALLEL 128 CACHE STRING "Parallelism (min 4, max 1000)") # Call this from your own project's makefile. find_package(nng CONFIG REQUIRED) +find_package(Threads) + add_executable(server server.c) target_link_libraries(server nng::nng) -target_compile_definitions(server PRIVATE -DPARALLEL=${PARALLEL}) +target_compile_definitions(server PRIVATE NNG_ELIDE_DEPRECATED PARALLEL=${PARALLEL}) add_executable(client client.c) target_link_libraries(client nng::nng) +target_compile_definitions(client PRIVATE NNG_ELIDE_DEPRECATED) |
