mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 20:26:23 +01:00
Buttons for client options
This commit is contained in:
@@ -136,9 +136,11 @@ option(LUAJIT "Use lua jit" OFF)
|
||||
if(NOT APPLE)
|
||||
option(CRASH_HANDLER "Generate crash reports" ON)
|
||||
option(USE_STATIC_LIBS "Don't use shared libraries (dlls)" ON)
|
||||
option(USE_LIBCPP "Use the new libc++ library instead of stdc++" OFF)
|
||||
else()
|
||||
set(CRASH_HANDLER OFF)
|
||||
set(USE_STATIC_LIBS OFF)
|
||||
set(USE_LIBCPP ON)
|
||||
endif()
|
||||
set(BUILD_COMMIT "devel" CACHE "Git commit string (intended for releases)" STRING)
|
||||
set(BUILD_REVISION "0" CACHE "Git revision string (intended for releases)" STRING)
|
||||
@@ -242,6 +244,10 @@ else()
|
||||
message(STATUS "Crash handler: OFF")
|
||||
endif()
|
||||
|
||||
if(USE_LIBCPP)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-deprecated-declarations")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthreads")
|
||||
set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_WIN32_WINNT=0x0501)
|
||||
@@ -249,7 +255,6 @@ if(WIN32)
|
||||
set(SYSTEM_LIBRARIES "")
|
||||
else()
|
||||
if(APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-deprecated-declarations")
|
||||
set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_REENTRANT) # enable thread safe code
|
||||
set(SYSTEM_LIBRARIES "")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user