aboutsummaryrefslogtreecommitdiff
path: root/primedev/cmake/Findlibcurl.cmake
diff options
context:
space:
mode:
authorNorthstar <northstar@northstar.tf>2024-01-03 23:39:55 +0100
committerNorthstar <northstar@northstar.tf>2024-01-03 23:39:55 +0100
commit36e1093620c59f8ac10bd59d4d05ec3ceffd15f7 (patch)
tree67325d74fc2795500bb6638081eeac18c36dc0a4 /primedev/cmake/Findlibcurl.cmake
parentbaa706d25aa0eb0962551ae7b7978481db841c02 (diff)
downloadNorthstarLauncher-36e1093620c59f8ac10bd59d4d05ec3ceffd15f7.tar.gz
NorthstarLauncher-36e1093620c59f8ac10bd59d4d05ec3ceffd15f7.zip
Format cmake files
Diffstat (limited to 'primedev/cmake/Findlibcurl.cmake')
-rw-r--r--primedev/cmake/Findlibcurl.cmake57
1 files changed, 43 insertions, 14 deletions
diff --git a/primedev/cmake/Findlibcurl.cmake b/primedev/cmake/Findlibcurl.cmake
index 6e158b95..3f059665 100644
--- a/primedev/cmake/Findlibcurl.cmake
+++ b/primedev/cmake/Findlibcurl.cmake
@@ -1,18 +1,47 @@
+if(NOT libcurl_FOUND)
+ check_init_submodule(${PROJECT_SOURCE_DIR}/primedev/thirdparty/libcurl)
-if (NOT libcurl_FOUND)
- check_init_submodule(${PROJECT_SOURCE_DIR}/primedev/thirdparty/libcurl)
+ set(BUILD_SHARED_LIBS
+ OFF
+ CACHE BOOL "Build shared libraries"
+ )
+ set(BUILD_CURL_EXE
+ OFF
+ CACHE BOOL "Build curl EXE"
+ )
+ set(HTTP_ONLY
+ ON
+ CACHE BOOL "Only build HTTP and HTTPS"
+ )
+ set(CURL_ENABLE_SSL
+ ON
+ CACHE BOOL "Enable SSL support"
+ )
+ set(CURL_USE_OPENSSL
+ OFF
+ CACHE BOOL "Disable OpenSSL"
+ )
+ set(CURL_USE_LIBSSH2
+ OFF
+ CACHE BOOL "Disable libSSH2"
+ )
+ set(CURL_USE_SCHANNEL
+ ON
+ CACHE BOOL "Enable Secure Channel"
+ )
+ set(CURL_CA_BUNDLE
+ "none"
+ CACHE STRING "Disable CA Bundle"
+ )
+ set(CURL_CA_PATH
+ "none"
+ CACHE STRING "Disable CA Path"
+ )
- set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libraries")
- set(BUILD_CURL_EXE OFF CACHE BOOL "Build curl EXE")
- set(HTTP_ONLY ON CACHE BOOL "Only build HTTP and HTTPS")
- set(CURL_ENABLE_SSL ON CACHE BOOL "Enable SSL support")
- set(CURL_USE_OPENSSL OFF CACHE BOOL "Disable OpenSSL")
- set(CURL_USE_LIBSSH2 OFF CACHE BOOL "Disable libSSH2")
- set(CURL_USE_SCHANNEL ON CACHE BOOL "Enable Secure Channel")
- set(CURL_CA_BUNDLE "none" CACHE STRING "Disable CA Bundle")
- set(CURL_CA_PATH "none" CACHE STRING "Disable CA Path")
-
- add_subdirectory(${PROJECT_SOURCE_DIR}/primedev/thirdparty/libcurl libcurl)
- set(libcurl_FOUND 1 PARENT_SCOPE)
+ add_subdirectory(${PROJECT_SOURCE_DIR}/primedev/thirdparty/libcurl libcurl)
+ set(libcurl_FOUND
+ 1
+ PARENT_SCOPE
+ )
endif()