cmake: fix default server interface option
This commit is contained in:
parent
97b0aebeef
commit
d1e4798372
@ -79,14 +79,6 @@ if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED WITH_CLIENT_INTERFACE)
|
||||
set(WITH_CLIENT_INTERFACE ON)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED WITH_SERVER_INTERFACE)
|
||||
set(WITH_SERVER_INTERFACE ON)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED BUILD_SHARED_LIBS)
|
||||
if(ANDROID OR IOS)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
@ -245,6 +237,7 @@ if(ANDROID)
|
||||
endif()
|
||||
|
||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
|
||||
if(NOT IOS AND NOT ANDROID)
|
||||
find_package(Threads REQUIRED)
|
||||
endif()
|
||||
@ -443,9 +436,10 @@ if(WITH_CHANNELS)
|
||||
endif()
|
||||
|
||||
if (IOS)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
|
||||
set(CMAKE_OSX_SYSROOT "iphoneos")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
|
||||
set(CMAKE_OSX_SYSROOT "iphoneos")
|
||||
endif()
|
||||
|
||||
if(WITH_CLIENT)
|
||||
add_subdirectory(client)
|
||||
endif()
|
||||
@ -477,7 +471,6 @@ if(NOT WIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
endif()
|
||||
|
||||
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
||||
@ -560,6 +553,5 @@ if (ANDROID AND CMAKE_EXTRA_GENERATOR STREQUAL "Eclipse CDT4")
|
||||
message(STATUS "Disabled CXX system defines for eclipse (workaround).")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
include(CPack)
|
||||
|
||||
|
@ -76,7 +76,8 @@ endif()
|
||||
|
||||
option(WITH_THIRD_PARTY "Build third-party components" OFF)
|
||||
|
||||
option(WITH_SERVER_INTERFACE "Build server as a library with an interface" OFF)
|
||||
option(WITH_CLIENT_INTERFACE "Build clients as a library with an interface" ON)
|
||||
option(WITH_SERVER_INTERFACE "Build servers as a library with an interface" ON)
|
||||
|
||||
option(WITH_DEBUG_ALL "Print all debug messages." OFF)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user