summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-11-12 21:39:44 -0800
committerGarrett D'Amore <garrett@damore.org>2020-11-12 21:39:44 -0800
commit6545ba68696e5a09f0b36f2ea5b60a83b0f88b8b (patch)
treeab15e005736d8154dc244443e8f88c86fff701a4 /src/platform
parentc62490b0573a9f12f917bb04212f6ecb0d1cdccb (diff)
downloadnng-6545ba68696e5a09f0b36f2ea5b60a83b0f88b8b.tar.gz
nng-6545ba68696e5a09f0b36f2ea5b60a83b0f88b8b.tar.bz2
nng-6545ba68696e5a09f0b36f2ea5b60a83b0f88b8b.zip
Fix build regression on non-Windows platform (sorry!)
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/windows/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
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