mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
CMake: Disable /GS when using MSVC for user builds
This commit is contained in:
parent
91ebff1b5f
commit
d1922798c5
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ if(BUILD_LIBRETRO_CORE)
|
||||||
add_compile_definitions(__LIBRETRO__)
|
add_compile_definitions(__LIBRETRO__)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND ENABLE_USER_BUILD)
|
||||||
|
# Disable stack buffer overflow checks in user builds
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GS-")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(AlberCore STATIC)
|
add_library(AlberCore STATIC)
|
||||||
|
|
||||||
include_directories(${PROJECT_SOURCE_DIR}/include/)
|
include_directories(${PROJECT_SOURCE_DIR}/include/)
|
||||||
|
|
Loading…
Add table
Reference in a new issue