From 35bcbe8bf0927c1fc341be2ed64708ff5178bc5c Mon Sep 17 00:00:00 2001 From: thfrwn <11335318+rfht@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:03:24 -0400 Subject: [PATCH] build on OpenBSD via Linux pathways --- CMakeLists.txt | 2 +- ddebug/CMakeLists.txt | 2 +- ddio/CMakeLists.txt | 2 +- scripts/CMakeLists.txt | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdcbbeb8..11e2d102 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,7 +136,7 @@ find_package(SDL2 REQUIRED) message("SDL2 Include Dir is ${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS}") -if(CMAKE_SYSTEM_NAME STREQUAL "Linux") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") message("Building for Linux") add_compile_definitions(POSIX __LINUX__ _USE_OGL_ACTIVE_TEXTURES PRIMARY_HOG=\"d3-linux.hog\") set(PLATFORM_INCLUDES "lib/linux" ${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS}) diff --git a/ddebug/CMakeLists.txt b/ddebug/CMakeLists.txt index 99616b84..82d18a28 100644 --- a/ddebug/CMakeLists.txt +++ b/ddebug/CMakeLists.txt @@ -4,7 +4,7 @@ set(HEADERS mono.h) set(CPPS debug.cpp - $<$: + $<$: lnxdebug.cpp lnxmono.cpp > diff --git a/ddio/CMakeLists.txt b/ddio/CMakeLists.txt index 06e44bfd..fbe6c683 100644 --- a/ddio/CMakeLists.txt +++ b/ddio/CMakeLists.txt @@ -16,7 +16,7 @@ set(CPPS lnxkey_null.cpp lnxmouse.cpp lnxkey_sdl.cpp - $<$: + $<$: lnxfile.cpp > $<$: diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index ccff1c63..50c259bd 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -7,7 +7,7 @@ set(HEADERS osiris_import.h osiris_vector.h) set(CPPS - $<$: + $<$: linux_lib.cpp > ) @@ -87,7 +87,7 @@ foreach(SCRIPT ${SCRIPTS}) endif() endforeach() -if(CMAKE_SYSTEM_NAME STREQUAL "Linux") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") set(HOG_NAME "linux") elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(HOG_NAME "osx")