From 91a9df21316cdc033f5a7a0fe0e41517a846ac94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Tue, 24 May 2022 23:09:29 +0200 Subject: [PATCH] qt: fix Windows RC file erroneously including the manifest under VS --- src/qt/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 2364f5a9e..573f41285 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -176,7 +176,7 @@ if(WIN32) # MSVC linker adds its own manifest to the executable, which fails if # we include ours in 86Box.rc. We therefore need to pass the manifest # directly as as a source file, so the linker can use that instead. - set_property(SOURCE ../win/86Box-qt.rc PROPERTY COMPILE_DEFINITIONS NO_INCLUDE_MANIFEST) + set_property(SOURCE ../win/86Box-qt.rc DIRECTORY .. PROPERTY COMPILE_DEFINITIONS NO_INCLUDE_MANIFEST) target_sources(86Box PRIVATE ../win/86Box.manifest) endif() @@ -220,6 +220,7 @@ target_link_libraries( Qt${QT_MAJOR}::Gui Qt${QT_MAJOR}::OpenGL Qt${QT_MAJOR}::Network + Threads::Threads )