[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 283/411: CMake: make BUILD_TESTING dependent option
From: |
gnunet |
Subject: |
[gnurl] 283/411: CMake: make BUILD_TESTING dependent option |
Date: |
Wed, 13 Jan 2021 01:21:38 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 3a1e798009799be1e9fad30666351b66f250befb
Author: Sergei Nikulov <sergey.nikulov@gmail.com>
AuthorDate: Tue Oct 13 23:37:15 2020 +0300
CMake: make BUILD_TESTING dependent option
CMake will now handle BUILD_TESTING depending on PERL_FOUND and
CURL_DISABLE_TESTING
Ref: #6036
Closes #6072
---
CMakeLists.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f3d0a5614..b25488fe4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1324,10 +1324,10 @@ if(BUILD_CURL_EXE)
add_subdirectory(src)
endif()
-option(BUILD_TESTING "Build tests" "${PERL_FOUND}")
-if(NOT PERL_FOUND)
- message(STATUS "Perl not found, testing disabled.")
-elseif(BUILD_TESTING)
+cmake_dependent_option(BUILD_TESTING "Build tests"
+ ON "PERL_FOUND;NOT CURL_DISABLE_TESTS"
+ OFF)
+if(BUILD_TESTING)
add_subdirectory(tests)
endif()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 335/411: http_proxy: use enum with state names for 'keepon', (continued)
- [gnurl] 335/411: http_proxy: use enum with state names for 'keepon', gnunet, 2021/01/12
- [gnurl] 298/411: CI/tests: enable test target on TravisCI for CMake builds, gnunet, 2021/01/12
- [gnurl] 358/411: CI/cirrus: simplify logic for disabled tests, gnunet, 2021/01/12
- [gnurl] 370/411: docs/INTERNALS: remove reference to Curl_sendf(), gnunet, 2021/01/12
- [gnurl] 336/411: cmake: don't pass -fvisibility=hidden to clang-cl on Windows, gnunet, 2021/01/12
- [gnurl] 338/411: httpput-postfields.c: new example doing PUT with POSTFIELDS, gnunet, 2021/01/12
- [gnurl] 276/411: CI/github: work-around for brew breakage on macOS, gnunet, 2021/01/12
- [gnurl] 303/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 293/411: gnutls: fix memory leaks (certfields memory wasn't released), gnunet, 2021/01/12
- [gnurl] 316/411: examples: fix comment syntax, gnunet, 2021/01/12
- [gnurl] 283/411: CMake: make BUILD_TESTING dependent option,
gnunet <=
- [gnurl] 337/411: cmake: correctly handle linker flags for static libs, gnunet, 2021/01/12
- [gnurl] 291/411: tool_operate: --retry for HTTP 408 responses too, gnunet, 2021/01/12
- [gnurl] 361/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 315/411: hsts: Remove pointless call to free in errorpath, gnunet, 2021/01/12
- [gnurl] 367/411: Makefile.m32: add support for UNICODE builds, gnunet, 2021/01/12
- [gnurl] 285/411: configure: use pkgconfig to find openSSL when cross-compiling, gnunet, 2021/01/12
- [gnurl] 354/411: cmake: make CURL_ZLIB a tri-state variable, gnunet, 2021/01/12
- [gnurl] 357/411: mailmap: Daniel Hwang, gnunet, 2021/01/12
- [gnurl] 265/411: CMake: store IDN2 information in curl_config.h, gnunet, 2021/01/12
- [gnurl] 351/411: KNOWN_BUGS: cmake autodetects cert paths when cross-compiling, gnunet, 2021/01/12