(FreeBSD) Added support for building with DEINIT_ON_LAUNCH

This commit is contained in:
Leon Styhre 2024-08-19 17:17:20 +02:00
parent 2a9ab5ea88
commit 330f36ee14

View file

@ -370,11 +370,11 @@ if(VIDEO_HW_DECODING)
endif() endif()
if(DEINIT_ON_LAUNCH) if(DEINIT_ON_LAUNCH)
if(CMAKE_SYSTEM_NAME MATCHES Linux) if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)
add_compile_definitions(DEINIT_ON_LAUNCH) add_compile_definitions(DEINIT_ON_LAUNCH)
message("-- Building with deinitialization on game launch") message("-- Building with deinitialization on game launch")
else() else()
message(FATAL_ERROR "-- Deinitialization on game launch can only be used on Linux") message(FATAL_ERROR "-- Deinitialization on game launch can only be used on Linux and FreeBSD")
endif() endif()
endif() endif()