You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by as...@apache.org on 2020/05/29 11:29:38 UTC
[mesos] 02/03: Added headers install target for building modules
into stout.
This is an automated email from the ASF dual-hosted git repository.
asekretenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit d370c6eb954a95f98100750741b821be88e867d8
Author: Andriy Kornatskyy <an...@live.com>
AuthorDate: Fri May 29 11:37:36 2020 +0300
Added headers install target for building modules into stout.
This patch introduces a conditional install target for stout headers
that is added when the `ENABLE_INSTALL_MODULE_DEPENDENCIES` flag is on.
This closes #363
---
3rdparty/stout/CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/3rdparty/stout/CMakeLists.txt b/3rdparty/stout/CMakeLists.txt
index 3fd63dc..649dd15 100644
--- a/3rdparty/stout/CMakeLists.txt
+++ b/3rdparty/stout/CMakeLists.txt
@@ -37,4 +37,10 @@ target_link_libraries(
$<$<PLATFORM_ID:Windows>:Ws2_32 IPHlpAPI Mswsock Secur32 Userenv>
$<$<PLATFORM_ID:FreeBSD>:svn>)
+if (ENABLE_INSTALL_MODULE_DEPENDENCIES)
+ install(
+ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include
+ DESTINATION .)
+endif ()
+
add_subdirectory(tests)