You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by xy...@apache.org on 2023/12/06 03:04:52 UTC
(pulsar-client-cpp) 03/06: Install Version.h when installing by CMakeLists (#361)
This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git
commit 8595f97d16d91f51ac1d701c70716d2af619137d
Author: Yunze Xu <xy...@163.com>
AuthorDate: Mon Dec 4 10:25:34 2023 +0800
Install Version.h when installing by CMakeLists (#361)
### Motivation
The macOS pre-built binaries don't include the Version.h generated from
CMake. It's because `cmake --target install` does not install the
`Version.h`, which is generated by `configure_file`.
### Modifications
Install the `Version.h`.
(cherry picked from commit 751c807c1c3b6ea17e6611e5c8e436e8aac7a6a6)
---
lib/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index eca7638..8bd9749 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -156,3 +156,4 @@ if (BUILD_DYNAMIC_LIB)
endif()
install(DIRECTORY "../include/pulsar" DESTINATION include)
+install(FILES "${PROJECT_BINARY_DIR}/include/pulsar/Version.h" DESTINATION include/pulsar/)