CMake: Add CI flag for CI builds

This commit is contained in:
TellowKrinkle 2021-08-15 01:54:37 -05:00 committed by refractionpcsx2
parent 142d91dfb5
commit 2881149f0b
1 changed files with 5 additions and 0 deletions

View File

@ -327,6 +327,11 @@ if(CMAKE_BUILD_STRIP)
add_link_options(-s)
endif()
# Enable special stuff for CI builds
if($ENV{CI} STREQUAL "true")
list(APPEND PCSX2_DEFS PCSX2_CI)
endif()
#-------------------------------------------------------------------------------
# MacOS-specific things
#-------------------------------------------------------------------------------