From df1bbe28114f64471d47d5e076b8e94d746f73b4 Mon Sep 17 00:00:00 2001 From: Sara Dickinson Date: Wed, 21 Jun 2023 15:26:11 +0100 Subject: [PATCH] try force --- cmake/modules/FindLibevent2.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/FindLibevent2.cmake b/cmake/modules/FindLibevent2.cmake index 99b25be0..167d1249 100644 --- a/cmake/modules/FindLibevent2.cmake +++ b/cmake/modules/FindLibevent2.cmake @@ -35,8 +35,8 @@ if (PKG_CONFIG_FOUND) endif () if (PkgLibevent_FOUND) - set(LIBEVENT2_INCLUDE_DIR ${PkgLibevent_INCLUDE_DIRS} CACHE FILEPATH "libevent2 include path") - set(LIBEVENT2_LIBRARIES ${PkgLibevent_LIBRARIES} CACHE STRING "libevent2 libraries") + set(LIBEVENT2_INCLUDE_DIR ${PkgLibevent_INCLUDE_DIRS} CACHE FILEPATH "libevent2 include path" FORCE) + set(LIBEVENT2_LIBRARIES ${PkgLibevent_LIBRARIES} CACHE STRING "libevent2 libraries" FORCE) set(LIBEVENT2_VERSION ${PkgLibevent_VERSION}) add_library(Libevent2::Libevent_core ALIAS PkgConfig::PkgLibevent) set(Libevent2_FOUND ON)