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.
This commit is contained in:
Lioncash 2019-06-17 23:24:49 -04:00
parent b3525ad774
commit e8fd834d8f
1 changed files with 2 additions and 7 deletions

View File

@ -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")