From 000303c90825cd1d7b1ec66c37ba1faf23f2a436 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 16 Jan 2023 12:02:04 +0000 Subject: [PATCH] Do not fail because of missing build-type in ufid Just pick a reasonable default. If someone is compilling this from scratch, it's probably a developer, so debug is a sane default. --- cmake/bde_ufid.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/bde_ufid.cmake b/cmake/bde_ufid.cmake index 9663af48..fb83e59f 100644 --- a/cmake/bde_ufid.cmake +++ b/cmake/bde_ufid.cmake @@ -209,7 +209,8 @@ function(bde_parse_ufid UFID) elseif(${bde_ufid_is_dbg}) set(build_type Debug) else() - message(FATAL_ERROR "The build type is not set in UFID: ${UFID}") + set(build_type Debug) + message(WARNING "The build type is not set in UFID: ${UFID}, Defaulting to Debug") endif() set(CMAKE_BUILD_TYPE ${build_type} CACHE STRING "Build type" FORCE)