Skip to content

Commit

Permalink
Default to Release when using single-configuration generators
Browse files Browse the repository at this point in the history
  • Loading branch information
bobsayshilol committed Sep 30, 2022
1 parent c83064c commit 9f41bcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ option(DTV "Enable video output" OFF)
option(PIRANHA_ENABLED "Enable scripting input" ON)
cmake_dependent_option(DISCORD_ENABLED "Enable Discord Rich Presence" ON WIN32 OFF)

# Default to compiling as Release in single-configuration generators
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)
endif()

if (DTV)
add_compile_definitions(ATG_ENGINE_SIM_VIDEO_CAPTURE)
endif (DTV)
Expand Down

0 comments on commit 9f41bcc

Please sign in to comment.