mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 08:27:06 +00:00
potential fix to #141
This commit is contained in:
@@ -47,11 +47,6 @@ if(APPLE)
|
|||||||
include_directories(/usr/local/opt/openssl@1.1/include)
|
include_directories(/usr/local/opt/openssl@1.1/include)
|
||||||
link_directories(/usr/local/opt/openssl@1.1/lib)
|
link_directories(/usr/local/opt/openssl@1.1/lib)
|
||||||
endif()
|
endif()
|
||||||
# ------------------------ WINDOWS ---------------------------------
|
|
||||||
elseif (WIN32)
|
|
||||||
if (WIN32_STATIC_RUNTIME)
|
|
||||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
||||||
endif()
|
|
||||||
# ------------------------ UNIX ------------------------------------
|
# ------------------------ UNIX ------------------------------------
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")
|
||||||
@@ -173,6 +168,16 @@ if (UNIX)
|
|||||||
-Wzero-as-null-pointer-constant
|
-Wzero-as-null-pointer-constant
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
set(BEAMMP_RT /MDd)
|
||||||
|
if (WIN32_STATIC_RUNTIME)
|
||||||
|
set(BEAMMP_RT /MT)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(BeamMP_CompileOptions
|
||||||
|
${BEAMMP_RT}
|
||||||
|
/bigobj
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
|
||||||
set(BeamMP_CompileOptions
|
set(BeamMP_CompileOptions
|
||||||
/bigobj
|
/bigobj
|
||||||
|
|||||||
Reference in New Issue
Block a user