diff --git a/CMakeLists.txt b/CMakeLists.txt index 28a9b115c..3d58cc70d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 50706a057..c799fe60d 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -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()