From 658c33eb0d8c46ca17a2566ff7360ae523db0db8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 25 Aug 2019 21:37:48 -0400 Subject: [PATCH] Editor/CMakeLists: Add QT_USE_QSTRINGBUILDER definition --- Editor/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Editor/CMakeLists.txt b/Editor/CMakeLists.txt index 656be6a..45b9bb6 100644 --- a/Editor/CMakeLists.txt +++ b/Editor/CMakeLists.txt @@ -60,6 +60,11 @@ add_executable(amuse-gui WIN32 MACOSX_BUNDLE ${QM_FILES} ) +target_compile_definitions(amuse-gui PRIVATE + # Allows for more efficient string concatenation, resulting in less temporaries. + -DQT_USE_QSTRINGBUILDER +) + if(WIN32) target_sources(amuse-gui PRIVATE platforms/win/amuse-gui.rc