From 6545ba68696e5a09f0b36f2ea5b60a83b0f88b8b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 12 Nov 2020 21:39:44 -0800 Subject: Fix build regression on non-Windows platform (sorry!) --- src/platform/windows/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/platform/windows') diff --git a/src/platform/windows/CMakeLists.txt b/src/platform/windows/CMakeLists.txt index 251011cf..d6607a64 100644 --- a/src/platform/windows/CMakeLists.txt +++ b/src/platform/windows/CMakeLists.txt @@ -9,11 +9,13 @@ # Windows. -nng_sources_if(NNG_PLATFORM_WINDOWS +# We cannot use nng_sources_if because these tests don't go into +# the static library unless they also go into the dynamic. +if (NNG_PLATFORM_WINDOWS) +nng_sources( win_impl.h win_ipc.h win_tcp.h - win_clock.c win_debug.c win_file.c @@ -32,3 +34,4 @@ nng_sources_if(NNG_PLATFORM_WINDOWS win_thread.c win_udp.c ) +endif() \ No newline at end of file -- cgit v1.2.3-70-g09d2