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.
pull/1942/head
Jason Rhinelander 2 years ago
parent 93421c6eaf
commit 4c39a2d395

@ -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)

Loading…
Cancel
Save