From 9f8c8191cacdcafd46924a23720f6de228d31ecc Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Mon, 28 Aug 2023 13:10:41 +0200 Subject: [PATCH] CMakeLists: fix a condition. Submodules should _not_ be used when using system libs, after all. Derp. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d69cd1d..8f06cac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ endif() option(SAVETOOL_USE_SYSTEM_LIBS "Use system-wide versions of the dependencies instead of the versions provided by submodules." OFF) -if(SAVETOOL_USE_SYSTEM_LIBS) +if(NOT SAVETOOL_USE_SYSTEM_LIBS) # Generic variables shared by multiple libs that don't provide their own. set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) set(BUILD_TESTING OFF CACHE BOOL "" FORCE) @@ -120,6 +120,6 @@ if(SAVETOOL_USE_SYSTEM_LIBS) set(CURL_USE_SCHANNEL ON CACHE BOOL "" FORCE) set(CURL_USE_LIBSSH2 OFF CACHE BOOL "" FORCE) # For some reason, even when HTTP_ONLY is set to ON, libcurl will try to link to libssh2. add_subdirectory(third-party/curl EXCLUDE_FROM_ALL) -endif(SAVETOOL_USE_SYSTEM_LIBS) +endif(NOT SAVETOOL_USE_SYSTEM_LIBS) add_subdirectory(src)