You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2018/03/09 21:30:00 UTC
[jira] [Created] (ZOOKEEPER-2999) CMake build should use
target-level commands
Andrew Schwartzmeyer created ZOOKEEPER-2999:
-----------------------------------------------
Summary: CMake build should use target-level commands
Key: ZOOKEEPER-2999
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2999
Project: ZooKeeper
Issue Type: Improvement
Affects Versions: 3.6.0
Reporter: Andrew Schwartzmeyer
Assignee: Andrew Schwartzmeyer
Originally suggested in [GitHub PR #386|https://github.com/apache/zookeeper/pull/386], the CMake build I wrote used {{include_directories}}, which has global side effects, instead of the more explicit {{target_include_directories}}, to include directories per target (and with private or public scoping).
Furthermore, it should also use {{CMAKE_CURRENT_SOURCE_DIR}} over {{CMAKE_SOURCE_DIR}} in order to allow inclusion in other projects via {{add_subdirectory()}}, and we can reduce the minimally required CMake version to 3.5 from 3.6.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)