CMakeLists: fix a condition.
Submodules should _not_ be used when using system libs, after all. Derp.
This commit is contained in:
parent
e9ce919fd0
commit
9f8c8191ca
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue