mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-27 10:52:16 -04:00
cmake: Disable char8_t on macOS with C++20
This is already disabled for other platforms, but the clang options
aren't applied on macOS.
Amends 8d33da1fab.
This commit is contained in:
committed by
Ryan Foster
parent
2c7afd36ef
commit
f4bb61f472
@@ -14,6 +14,10 @@ include(compiler_common)
|
||||
|
||||
add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:Swift>>:-fopenmp-simd>")
|
||||
|
||||
if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-char8_t>)
|
||||
endif()
|
||||
|
||||
# Ensure recent enough Xcode and platform SDK
|
||||
function(check_sdk_requirements)
|
||||
set(obs_macos_minimum_sdk 15.0) # Keep in sync with Xcode
|
||||
|
||||
Reference in New Issue
Block a user