Merge branch 'freebsd-memfix-cmake' into 'master'

Fix FreeBSD memory reporting if built with cmake

See merge request STJr/SRB2!2314
This commit is contained in:
Alam Ed Arias 2024-02-19 23:07:23 +00:00
commit dd54f749f2

View file

@ -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()