This is an automated email from the ASF dual-hosted git repository.
emmenlau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new a4e7b9a4a build/cmake/GenerateConfigModule.cmake: Do not install
'FindLibevent.cmake' if libevent is disabled
new 3fdc63649 Merge pull request #2868 from
BioDataAnalysis/emmenlau_fix_find_libevent_install
a4e7b9a4a is described below
commit a4e7b9a4a0aeece800a6f861348f2a35be443596
Author: Mario Emmenlauer <[email protected]>
AuthorDate: Mon Oct 9 14:53:10 2023 +0200
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 26f018a21..597ffd8f7 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()