3rdParty: add USE_IPO option to mupen64plus-video-GLideN64

This commit is contained in:
Rosalie Wanders
2025-12-04 16:26:10 +01:00
parent ce78026df7
commit ffd1fca431
@@ -12,6 +12,7 @@ option(ANDROID "Set to ON if targeting an Android device" ${ANDROID})
option(GL_PROFILE "Set to ON to turn on GL profiling" ${GL_PROFILE})
option(DEBUG_DUMP "Set to ON to enable debug dump" ${DEBUG_DUMP})
option(NO_OSD "Set to ON to disable OSD text drawing" ${NO_OSD})
option(USE_IPO "Enables IPO/LTO when supported" ON)
# run script to generate Revision.h
set(PATH_REVISION "${CMAKE_CURRENT_BINARY_DIR}/inc/Revision.h")
@@ -579,7 +580,7 @@ elseif(GLIDEN64_BUILD_TYPE)
)
endif(is_multi_config)
if(GLIDEN64_BUILD_TYPE STREQUAL "Release")
if(USE_IPO AND GLIDEN64_BUILD_TYPE STREQUAL "Release")
include(CheckIPOSupported)
check_ipo_supported(RESULT result)
if(result)
@@ -587,7 +588,7 @@ if(GLIDEN64_BUILD_TYPE STREQUAL "Release")
set_property(TARGET ${GLideN64_DLL_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -O3")
endif()
endif(GLIDEN64_BUILD_TYPE STREQUAL "Release")
endif(USE_IPO AND GLIDEN64_BUILD_TYPE STREQUAL "Release")
if(GLIDEN64_BUILD_TYPE STREQUAL "Debug")
if(SDL)