mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 23:41:19 +01:00
add the same flags to CMake
This commit is contained in:
parent
076d3cd639
commit
e37ab851ad
@ -13,6 +13,12 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|||||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# enable the latest C++ standard feature set,
|
||||||
|
# and also disable MSVC specific extensions
|
||||||
|
# to be even more standards compliant.
|
||||||
|
check_and_add_flag(CPPLATEST /std:c++latest)
|
||||||
|
check_and_add_flag(STANDARD_COMPLIANCE /permissive-)
|
||||||
|
|
||||||
# These aren't actually needed for C11/C++11
|
# These aren't actually needed for C11/C++11
|
||||||
# but some dependencies require them (LLVM, libav).
|
# but some dependencies require them (LLVM, libav).
|
||||||
add_definitions(-D__STDC_LIMIT_MACROS)
|
add_definitions(-D__STDC_LIMIT_MACROS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user