From 31584044083699ce55cf29c9e0b63bcb93b28a2a Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Tue, 16 Jan 2024 16:59:41 +0100 Subject: [PATCH] 3rdParty: fix building GLideN64 with RelWithDebInfo --- Source/3rdParty/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/3rdParty/CMakeLists.txt b/Source/3rdParty/CMakeLists.txt index df11449b3..f85a1d6c2 100644 --- a/Source/3rdParty/CMakeLists.txt +++ b/Source/3rdParty/CMakeLists.txt @@ -141,7 +141,13 @@ set(GLIDEN64_CUSTOM_INI "${GLIDEN64_DIR}/ini/GLideN64.custom.ini") if (WIN32) set(GLIDEN64_LIB "${GLIDEN64_BUILD_DIR}/mupen64plus-video-GLideN64.${SO_EXT}") else(WIN32) - set(GLIDEN64_LIB "${GLIDEN64_BUILD_DIR}/plugin/${CMAKE_BUILD_TYPE}/mupen64plus-video-GLideN64.${SO_EXT}") + # taken from GLideN64's CMakeLists.txt + if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel") + set(GLIDEN64_BUILD_TYPE Release) + elseif(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") + set(GLIDEN64_BUILD_TYPE Debug) + endif() + set(GLIDEN64_LIB "${GLIDEN64_BUILD_DIR}/plugin/${GLIDEN64_BUILD_TYPE}/mupen64plus-video-GLideN64.${SO_EXT}") endif(WIN32) set(GLIDENUI_TRANSLATIONS_LANGS "de;es;fr;it;ja;pl;pt_BR")