aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2024-04-18 13:30:31 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2024-04-24 16:26:41 +0300
commit8c8b474f868f04653bc3038b5676815f0e47a590 (patch)
tree477687a035f9331e430a5099bc98c3357079f1c4
parent9c12f068a9139bd6626358ea825d3cf6ddd6465d (diff)
Disable build curl if BUILD_SERVICE_LIB=OFF
Change-Id: I0f9d517cb38e398cfcebd1aab43a3918ac7ad8b2 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> (cherry picked from commit fbc62ce73e6b256c2f314f75d5e7e3816d01b8a3) Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
-rw-r--r--src/libs/3rdparty/CMakeLists.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libs/3rdparty/CMakeLists.txt b/src/libs/3rdparty/CMakeLists.txt
index 767a26e..4dbad6c 100644
--- a/src/libs/3rdparty/CMakeLists.txt
+++ b/src/libs/3rdparty/CMakeLists.txt
@@ -3,12 +3,14 @@
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#
-if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
- set(CURL_USE_SCHANNEL ON)
-endif ()
+if (BUILD_SERVICE_LIB)
+ if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
+ set(CURL_USE_SCHANNEL ON)
+ endif ()
-set(CURL_ENABLE_SSL ON)
-set(BUILD_LIBCURL_DOCS OFF)
-set(BUILD_CURL_EXE OFF)
+ set(CURL_ENABLE_SSL ON)
+ set(BUILD_LIBCURL_DOCS OFF)
+ set(BUILD_CURL_EXE OFF)
-add_subdirectory(curl)
+ add_subdirectory(curl)
+endif()