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/02/28 22:35:38 UTC

[2/6] mesos git commit: CMake: Exclude tests from the default build.

CMake: Exclude tests from the default build.

Currently, if you run `make`, you will end up building the
`libprocess-tests` binary because we do not exclude it from the default
build.  This commit adds the `EXCLUDE_FROM_ALL` property to the
`libprocess-tests` binary.

The `EXCLUDE_FROM_ALL` property is also added to the test helper
binary `test-linkee`.

`make check` will still run the test.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/68a4d896
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/68a4d896
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/68a4d896

Branch: refs/heads/master
Commit: 68a4d8960b30df25c12b521b28de14294506dc2f
Parents: e4c6acb
Author: Joseph Wu <jo...@apache.org>
Authored: Tue Feb 28 14:20:56 2017 -0800
Committer: Joseph Wu <jo...@apache.org>
Committed: Tue Feb 28 14:33:45 2017 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/src/tests/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/68a4d896/3rdparty/libprocess/src/tests/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/CMakeLists.txt b/3rdparty/libprocess/src/tests/CMakeLists.txt
index c65c7f5..cf1900e 100644
--- a/3rdparty/libprocess/src/tests/CMakeLists.txt
+++ b/3rdparty/libprocess/src/tests/CMakeLists.txt
@@ -67,7 +67,7 @@ link_directories(${PROCESS_TEST_LIB_DIRS})
 
 # THE PROCESS TEST EXECUTABLE (generates, e.g., libprocess-tests, etc., on Linux).
 ###############################################################################
-add_executable(${PROCESS_TESTS_TARGET} ${PROCESS_TESTS_SRC})
+add_executable(${PROCESS_TESTS_TARGET} EXCLUDE_FROM_ALL ${PROCESS_TESTS_SRC})
 
 GROUP_STOUT_HEADERS()
 GROUP_PROCESS_HEADERS()
@@ -88,7 +88,7 @@ add_dependencies(${PROCESS_TESTS_TARGET} ${PROCESS_TEST_DEPENDENCIES})
 
 # ADDITIONAL EXECUTABLE(s).
 ###########################
-add_executable(test-linkee test_linkee.cpp)
+add_executable(test-linkee EXCLUDE_FROM_ALL test_linkee.cpp)
 target_link_libraries(test-linkee ${PROCESS_TEST_LIBS})
 add_dependencies(${PROCESS_TESTS_TARGET} test-linkee)