Fix FreeBSD memory reporting if built with cmake

This commit is contained in:
SteelT 2024-02-14 02:57:22 -05:00
parent 6d820223f7
commit a9a1a4bf65

View file

@ -155,6 +155,10 @@ if (UNIX)
target_compile_definitions(SRB2SDL2 PRIVATE -DUNIXCOMMON) target_compile_definitions(SRB2SDL2 PRIVATE -DUNIXCOMMON)
endif() endif()
if (BSD MATCHES "FreeBSD")
target_compile_definitions(SRB2SDL2 PRIVATE -DFREEBSD)
endif()
if(CMAKE_COMPILER_IS_GNUCC) if(CMAKE_COMPILER_IS_GNUCC)
find_program(OBJCOPY objcopy) find_program(OBJCOPY objcopy)
endif() endif()