mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
when STATIC_LINK search for static versions of libraries, delay CURL detection until later
This commit is contained in:
parent
0eb4efdce9
commit
60a36a4a7d
|
@ -42,6 +42,11 @@ if (STATIC_LINK AND STATIC_LINK_RUNTIME)
|
|||
message(FATAL "Cannot set both STATIC_LINK and STATIC_LINK_RUNTIME")
|
||||
endif()
|
||||
|
||||
if (STATIC_LINK)
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
message(STATUS "setting static library suffix search")
|
||||
endif()
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
||||
|
||||
# No in-source building
|
||||
|
@ -188,10 +193,6 @@ set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
|||
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
if(NOT IOS AND NOT ANDROID AND NOT WIN32)
|
||||
find_package(CURL REQUIRED)
|
||||
endif()
|
||||
|
||||
include(cmake/static_link_runtime.cmake)
|
||||
include(cmake/static_link.cmake)
|
||||
|
||||
|
|
Loading…
Reference in a new issue