From c2ab2494ef375bfc5d621b39badabeb9a0c86f6a Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 10 May 2020 02:10:20 +0200 Subject: CMake: do not build test programs by default The default target should only build libcurl and curl. Add a dedicated 'testdeps' target which will be used later when running tests. Note that unittests are currently broken in CMake and already excluded. Closes #5368 --- tests/server/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/server/CMakeLists.txt') diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt index 7c64f0a8d..3bfa64921 100644 --- a/tests/server/CMakeLists.txt +++ b/tests/server/CMakeLists.txt @@ -26,7 +26,8 @@ if(MSVC) endif() function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test - add_executable(${TEST_NAME} ${ARGN}) + add_executable(${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN}) + add_dependencies(testdeps ${TEST_NAME}) string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME) include_directories( -- cgit v1.2.3