Skip to content

Commit 06b43fd

Browse files
committed
Fix warning
1 parent 775e5fa commit 06b43fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/yup_utilities.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ function (_yup_setup_coverage_flags target_name)
290290
-fprofile-arcs
291291
-fprofile-update=atomic
292292
-ftest-coverage
293-
-fno-elide-constructors)
293+
$<$<COMPILE_LANGUAGE:CXX>:-fno-elide-constructors>
294+
$<$<COMPILE_LANGUAGE:OBJCXX>:-fno-elide-constructors>)
294295

295296
target_link_options (${target_name} INTERFACE --coverage)
296297

0 commit comments

Comments
 (0)