From b07a6023d0290b261386d28ef89ac99b43d71314 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Wed, 21 Apr 2021 12:28:38 +0300 Subject: [PATCH] Fix compiling 86Box.rc in CMake. --- src/win/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win/CMakeLists.txt b/src/win/CMakeLists.txt index 3fcf28d1a..cdb52aaae 100644 --- a/src/win/CMakeLists.txt +++ b/src/win/CMakeLists.txt @@ -30,6 +30,9 @@ if(MSVC) target_sources(86Box PRIVATE 86Box.manifest) target_sources(plat PRIVATE win_opendir.c) + + # Append null to resource strings (fixes file dialogs) + set_property(SOURCE 86Box.rc PROPERTY COMPILE_FLAGS -n) endif() if(DINPUT)