Skip to content

Commit

Permalink
Merge branch 'freebsd-memfix-cmake' into 'master'
Browse files Browse the repository at this point in the history
Fix FreeBSD memory reporting if built with cmake

See merge request STJr/SRB2!2314
  • Loading branch information
alama committed Feb 19, 2024
2 parents 6d82022 + a9a1a4b commit dd54f74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dd54f74

Please sign in to comment.