mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Disable FAudio debug configuration in Release mode
Whereas all `SDL_assert`s will go away when compiling with optimization flags and all plain `assert` calls (used in PhysFS) will go away when compiling in Release mode, FAudio has a bunch of debug stuff that needs to be explicitly disabled with its own `FAUDIO`-prefixed flag. To do this in Release mode, we need to use generator expressions for dumb CMake reasons. Basically, if checking the CMAKE_BUILD_TYPE variable will not work for certain generators (Ninja, Visual Studio) because they only specify the build type at build time, not generation/configuration time.
This commit is contained in:
@@ -312,6 +312,8 @@ if(BUNDLE_DEPENDENCIES)
|
|||||||
faudio-static PRIVATE
|
faudio-static PRIVATE
|
||||||
../third_party/FAudio/include
|
../third_party/FAudio/include
|
||||||
)
|
)
|
||||||
|
# Disable FAudio debug stuff in release mode. This needs a generator expression for CMake reasons(TM)
|
||||||
|
target_compile_definitions(faudio-static PRIVATE $<$<CONFIG:Release>:FAUDIO_DISABLE_DEBUGCONFIGURATION>)
|
||||||
|
|
||||||
target_link_libraries(VVVVVV ${STATIC_LIBRARIES})
|
target_link_libraries(VVVVVV ${STATIC_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
|
|||||||
Reference in New Issue
Block a user