From c4bf626b88cf8101fd1965754822b5c94c1b1737 Mon Sep 17 00:00:00 2001 From: Frederic Laing <27208977+FreddyFunk@users.noreply.github.com> Date: Fri, 21 Sep 2018 14:47:43 +0200 Subject: [PATCH] Addressed feedback --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c3336f429..2797d182ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,9 +383,13 @@ add_subdirectory(externals) add_subdirectory(src) add_subdirectory(dist/installer) -# Set citra-qt project as default StartUp Project in Visual Studio -set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citra-qt) +# Set citra-qt project or citra project as default StartUp Project in Visual Studio depending on whether QT is enabled or not +if(ENABLE_QT) + set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citra-qt) +else() + set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citra) +endif() # Installation instructions # =========================