From a4e7b9a4a0aeece800a6f861348f2a35be443596 Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer Date: Mon, 9 Oct 2023 14:53:10 +0200 Subject: [PATCH] build/cmake/GenerateConfigModule.cmake: Do not install 'FindLibevent.cmake' if libevent is disabled --- build/cmake/GenerateConfigModule.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/cmake/GenerateConfigModule.cmake b/build/cmake/GenerateConfigModule.cmake index 26f018a212..597ffd8f72 100644 --- a/build/cmake/GenerateConfigModule.cmake +++ b/build/cmake/GenerateConfigModule.cmake @@ -40,6 +40,9 @@ if (NOT CYGWIN) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ThriftConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/ThriftConfigVersion.cmake" - "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/FindLibevent.cmake" DESTINATION "${CMAKE_INSTALL_DIR}/thrift") + if(WITH_LIBEVENT) + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/FindLibevent.cmake" + DESTINATION "${CMAKE_INSTALL_DIR}/thrift") + endif() endif()