mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04: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
2 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue