You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2017/09/03 12:52:03 UTC
[41/42] mesos git commit: CMake: Used `list(APPEND x ...)` where
appropriate (libprocess).
CMake: Used `list(APPEND x ...)` where appropriate (libprocess).
Now that the minimum version of CMake has been bumped above 3.0,
we can use `list(APPEND x ...)` instead of `set(x ${x} ...)`.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2572edd9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2572edd9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/2572edd9
Branch: refs/heads/master
Commit: 2572edd97a9fd5b205b4b8c9062d19be21329487
Parents: fc6c0dc
Author: Joseph Wu <jo...@apache.org>
Authored: Sun Sep 3 00:58:26 2017 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Sun Sep 3 05:51:10 2017 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/CMakeLists.txt | 18 ++++++------------
3rdparty/libprocess/src/tests/CMakeLists.txt | 6 ++----
2 files changed, 8 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/2572edd9/3rdparty/libprocess/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/CMakeLists.txt b/3rdparty/libprocess/src/CMakeLists.txt
index dae057b..107e197 100644
--- a/3rdparty/libprocess/src/CMakeLists.txt
+++ b/3rdparty/libprocess/src/CMakeLists.txt
@@ -58,40 +58,34 @@ set(PROCESS_SRC
timeseries.cpp)
if (WIN32)
- set(PROCESS_SRC
- ${PROCESS_SRC}
+ list(APPEND PROCESS_SRC
subprocess_windows.cpp)
else ()
- set(PROCESS_SRC
- ${PROCESS_SRC}
+ list(APPEND PROCESS_SRC
subprocess_posix.cpp)
endif ()
if (ENABLE_LIBEVENT)
- set(PROCESS_SRC
- ${PROCESS_SRC}
+ list(APPEND PROCESS_SRC
libevent.hpp
libevent.cpp
libevent_poll.cpp)
else ()
- set(PROCESS_SRC
- ${PROCESS_SRC}
+ list(APPEND PROCESS_SRC
libev.hpp
libev.cpp
libev_poll.cpp)
endif ()
if (ENABLE_SSL)
- set(PROCESS_SRC
- ${PROCESS_SRC}
+ list(APPEND PROCESS_SRC
jwt.cpp
jwt_authenticator.cpp
openssl.cpp
ssl/utilities.cpp)
if (ENABLE_LIBEVENT)
- set(PROCESS_SRC
- ${PROCESS_SRC}
+ list(APPEND PROCESS_SRC
libevent_ssl_socket.cpp)
endif ()
endif ()
http://git-wip-us.apache.org/repos/asf/mesos/blob/2572edd9/3rdparty/libprocess/src/tests/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/CMakeLists.txt b/3rdparty/libprocess/src/tests/CMakeLists.txt
index 28396bd..d9ca23d 100644
--- a/3rdparty/libprocess/src/tests/CMakeLists.txt
+++ b/3rdparty/libprocess/src/tests/CMakeLists.txt
@@ -42,15 +42,13 @@ set(PROCESS_TESTS_SRC
timeseries_tests.cpp)
if (NOT WIN32)
- set(PROCESS_TESTS_SRC
- ${PROCESS_TESTS_SRC}
+ list(APPEND PROCESS_TESTS_SRC
io_tests.cpp
reap_tests.cpp)
endif ()
if (ENABLE_SSL)
- set(PROCESS_TESTS_SRC
- ${PROCESS_TESTS_SRC}
+ list(APPEND PROCESS_TESTS_SRC
jwt_tests.cpp
ssl_tests.cpp)
endif ()