From 7f2d7654e5cd062736518a46284d50de54c72f24 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 8 Apr 2024 21:39:23 -0700 Subject: [PATCH] cmake: don't set debug build postfix if specified --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33ee139cb..00ac11c20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,9 @@ if(UNIX OR MINGW) endif() endif() elseif(MSVC) - set(CMAKE_DEBUG_POSTFIX "d") + if(NOT DEFINED CMAKE_DEBUG_POSTFIX) + set(CMAKE_DEBUG_POSTFIX "d") + endif() add_definitions(-D_CRT_SECURE_NO_DEPRECATE) add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)