From 74158ab1a62c29f13a317abe47cd80d689584b08 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 28 Jan 2021 10:43:17 +0100 Subject: [PATCH] Allow benchmarks with --force-debug-info Developer builds with RelWithDebInfo should also make benchmarks, it is how we get good traces. Change-Id: I009d40580d5d784f78bd18ebf21887ce3c1fa97d Reviewed-by: Joerg Bornemann --- cmake/QtSetup.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 256206a99dc..bd81da9eb13 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -117,7 +117,7 @@ if(FEATURE_developer_build) # Disable benchmarks for single configuration generators which do not build # with release configuration. - if (CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE STREQUAL Release) + if (CMAKE_BUILD_TYPE AND CMAKE_BUILD_TYPE STREQUAL Debug) set(__build_benchmarks OFF) endif() else()