From a9a1a4bf657ef8b60e2563190a2bad2381cdff78 Mon Sep 17 00:00:00 2001 From: SteelT Date: Wed, 14 Feb 2024 02:57:22 -0500 Subject: [PATCH] Fix FreeBSD memory reporting if built with cmake --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 80dff5043..6fbf92300 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -155,6 +155,10 @@ if (UNIX) target_compile_definitions(SRB2SDL2 PRIVATE -DUNIXCOMMON) endif() +if (BSD MATCHES "FreeBSD") + target_compile_definitions(SRB2SDL2 PRIVATE -DFREEBSD) +endif() + if(CMAKE_COMPILER_IS_GNUCC) find_program(OBJCOPY objcopy) endif()