From 4c39a2d3956cda455ae5eed537c0fa75d714bbe8 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 21 Jun 2022 16:54:51 -0300 Subject: [PATCH] Make sure BUILD_SHARED_LIBS is a cache variable Otherwise cmake warns about propagation of normal variables into cache variables when it hits the option in the oxen-mq submodule. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8969f0eca..028c5a333 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,7 @@ endif() if(BUILD_STATIC_DEPS AND STATIC_LINK) message(STATUS "we are building static deps so we won't build shared libs") - set(BUILD_SHARED_LIBS OFF) + set(BUILD_SHARED_LIBS OFF CACHE BOOL "") endif() include(CheckCXXSourceCompiles)