From e8fd834d8f320296f68c273a06e0ca52bce4ac40 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 17 Jun 2019 23:24:49 -0400 Subject: [PATCH] DolphinQt/CMakeLists: Collapse name setting code for Windows Its sufficient to simply specify a debug postfix instead of using an separate variable. What's nice about this approach is that it will actually work :p Previously the code wouldn't work for multi-configuration generators like Visual Studio. --- Source/Core/DolphinQt/CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index c96aec40a0..8b6d7b02fa 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -281,15 +281,10 @@ PRIVATE if(WIN32) target_sources(dolphin-emu PRIVATE DolphinQt.manifest DolphinQt.rc) - if (CMAKE_BUILD_TYPE STREQUAL "Debug") - set(Dolphin_NAME "DolphinD") - else() - set(Dolphin_NAME "Dolphin") - endif() - set_target_properties(dolphin-emu PROPERTIES + DEBUG_POSTFIX D + OUTPUT_NAME Dolphin WIN32_EXECUTABLE TRUE - OUTPUT_NAME ${Dolphin_NAME} ) target_compile_options(dolphin-emu PRIVATE "-D_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING")