From c084742b80d6514b39824617a41eb16910c53cf4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 24 Sep 2018 14:59:31 -0700 Subject: fixes #735 Configuring ZeroTier for a unified build is too hard This changes the code to make use of a different project we have created (libzerotiercore) that is "CMake clean". This should make using and configuring this code *much* better. It may also have the benefit of making this configuration work better for Windows systems. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3042be38..52421a0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,6 +236,7 @@ mark_as_advanced(NNG_TRANSPORT_WSS) option (NNG_TRANSPORT_ZEROTIER "Enable ZeroTier transport (requires libzerotiercore)." OFF) if (NNG_TRANSPORT_ZEROTIER) + find_package(zerotiercore REQUIRED) add_definitions (-DNNG_TRANSPORT_ZEROTIER) endif () mark_as_advanced(NNG_TRANSPORT_ZEROTIER) -- cgit v1.2.3-70-g09d2