From 986e65f0dc31a5b7f947542518cd0b04f9d6adb5 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Wed, 17 Jul 2024 09:25:59 -0500 Subject: [PATCH 1/2] Fix link for Sanitizer Builds tutorial (#433) Signed-off-by: Addisu Z. Taddese --- tutorials/gz_cmake_sanitizers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/gz_cmake_sanitizers.md b/tutorials/gz_cmake_sanitizers.md index 156ce5ea..cf1f71ee 100644 --- a/tutorials/gz_cmake_sanitizers.md +++ b/tutorials/gz_cmake_sanitizers.md @@ -1,4 +1,4 @@ -# Sanitizer Builds +\page sanitizersbuilds Sanitizer Builds ## Original source and Copyright From 34c111c404f343c64c6f429e34061b18fdb5c13c Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Mon, 22 Jul 2024 10:05:59 -0500 Subject: [PATCH 2/2] Accept arbitrary capitalization for coverage build type (#435) Signed-off-by: Addisu Z. Taddese (cherry picked from commit 916a9176e74b0895eda255fc666ffc65cf828911) --- cmake/GzCodeCoverage.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/GzCodeCoverage.cmake b/cmake/GzCodeCoverage.cmake index 85e6bdd9..f3142947 100644 --- a/cmake/GzCodeCoverage.cmake +++ b/cmake/GzCodeCoverage.cmake @@ -56,7 +56,9 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX) ENDIF() ENDIF() # NOT CMAKE_COMPILER_IS_GNUCXX -IF ( NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "Coverage")) +# Convert to uppercase in order to support arbitrary capitalization +string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPERCASE) +IF ( NOT (CMAKE_BUILD_TYPE_UPPERCASE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE_UPPERCASE STREQUAL "COVERAGE")) MESSAGE( WARNING "Code coverage results with an optimized (non-Debug) build may be misleading" ) ENDIF() # NOT CMAKE_BUILD_TYPE STREQUAL "Debug"