From ef7fa8ae0f0e3af0fbea534dc0b1c989fceeb355 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 23 Jun 2023 10:56:35 +0200 Subject: [PATCH] build: make the debug build suitable for SizeBench --- test/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bc55a5092..c9e895056 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -65,9 +65,17 @@ function(SETUP_TARGET TARGET_NAME) # documentation diagnostic turned on for clang-cl only $<$:-Wdocumentation> /EHsc /wd4324 /wd4996 - $<$:/Od> + # disabling INCREMENTAL is required by SizeBench + $<$:/Od /INCREMENTAL:NO> $<$:/O2> ) + + target_link_options( + ${TARGET_NAME} + PRIVATE + # disabling INCREMENTAL is required by SizeBench + $<$:/INCREMENTAL:NO> + ) else() target_compile_options( ${TARGET_NAME}