|
|
@ -30,16 +30,12 @@ endif() |
|
|
# Needed for FFmpeg w/ VAAPI and DRM |
|
|
# Needed for FFmpeg w/ VAAPI and DRM |
|
|
if (PLATFORM_OPENBSD) |
|
|
if (PLATFORM_OPENBSD) |
|
|
# OpenBSD 7.8 broke libcxx when upgrading, so we must define the PSTL backend manually |
|
|
# OpenBSD 7.8 broke libcxx when upgrading, so we must define the PSTL backend manually |
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R6/include -D_LIBCPP_PSTL_BACKEND_SERIAL=1") |
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R6/include -D_LIBCPP_PSTL_BACKEND_SERIAL=1") |
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/X11R6/lib") |
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LIBCPP_PSTL_BACKEND_SERIAL=1") |
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LIBCPP_PSTL_BACKEND_SERIAL=1") |
|
|
elseif (PLATFORM_NETBSD) |
|
|
elseif (PLATFORM_NETBSD) |
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R7/include") |
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${CMAKE_SYSROOT}/usr/X11R7/include") |
|
|
|
|
|
if (NOT CXX_GCC OR CMAKE_CXX_COMPILER_VERSION VERSION_LESS "14.0") |
|
|
if (NOT CXX_GCC OR CMAKE_CXX_COMPILER_VERSION VERSION_LESS "14.0") |
|
|
message(FATAL_ERROR "You must use gcc14 (or newer) from pkgin; feel free to fix clang yourself otherwise.") |
|
|
message(FATAL_ERROR "You must use gcc14 (or newer) from pkgin; feel free to fix clang yourself otherwise.") |
|
|
endif() |
|
|
endif() |
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/X11R7/lib") |
|
|
|
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
# NetBSD: Fun for the whole family! |
|
|
# NetBSD: Fun for the whole family! |
|
|
|