mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-26 21:15:11 -06:00
OpenBSD build fixes
- Specify OpenBSD's X11 include directory - Add OpenBSD-specific linker flag to allow W|X
This commit is contained in:
parent
0fe6a8c7df
commit
5bc58c78ed
@ -25,6 +25,10 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||
enable_language(OBJC OBJCXX)
|
||||
endif()
|
||||
|
||||
if (BSD STREQUAL "OpenBSD")
|
||||
add_link_options(-z wxneeded)
|
||||
endif()
|
||||
|
||||
option(ENABLE_LIBRETRO "Build as a LibRetro core" OFF)
|
||||
|
||||
# Some submodules like to pick their own default build type if not specified.
|
||||
|
||||
4
externals/CMakeLists.txt
vendored
4
externals/CMakeLists.txt
vendored
@ -508,6 +508,10 @@ if (ENABLE_VULKAN)
|
||||
# prefix location. -OS
|
||||
target_include_directories(vulkan-headers INTERFACE
|
||||
/usr/pkg/share/x11-links/include)
|
||||
elseif (BSD STREQUAL "OpenBSD")
|
||||
# This is fine to hardcode because it'll never change
|
||||
target_include_directories(vulkan-headers INTERFACE
|
||||
/usr/X11R6/include)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user