No IPO by default in DEV builds

This commit is contained in:
Dennis Felsing 2022-05-16 14:58:44 +02:00
parent dc03f410ad
commit ee36c54125

View file

@ -96,19 +96,17 @@ endif()
set(AUTO_DEPENDENCIES_DEFAULT OFF) set(AUTO_DEPENDENCIES_DEFAULT OFF)
if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR DEV)
set(AUTO_IPO OFF) set(AUTO_IPO OFF)
else() elseif(MSVC)
set(AUTO_IPO ON)
endif()
if(MSVC)
# For some reason on MSVC platform the client and server binaries # For some reason on MSVC platform the client and server binaries
# become even bigger with IPO enabled. # become even bigger with IPO enabled.
set(AUTO_IPO OFF) set(AUTO_IPO OFF)
elseif(MINGW AND TARGET_CPU_ARCHITECTURE STREQUAL "x86") elseif(MINGW AND TARGET_CPU_ARCHITECTURE STREQUAL "x86")
# DWARF error: could not find variable specification and further failures # DWARF error: could not find variable specification and further failures
set(AUTO_IPO OFF) set(AUTO_IPO OFF)
else()
set(AUTO_IPO ON)
endif() endif()
set(AUTO_VULKAN_BACKEND ON) set(AUTO_VULKAN_BACKEND ON)