From: Haowei Hsu <71438617+hwhsu1231@users.noreply.github.com> Date: Fri, 29 Jul 2022 12:49:35 +0000 (+0800) Subject: Add postfix for Debug configuration. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd610b778146f1425cd6ee0ad51d4b7916cff873;p=libevent Add postfix for Debug configuration. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 799673de..a4529032 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,8 @@ if(NOT CMAKE_BUILD_TYPE) endif() string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER) +set(CMAKE_DEBUG_POSTFIX d CACHE STRING "Debug library postfix" FORCE) + set(EVENT__LIBRARY_TYPE DEFAULT CACHE STRING "Set library type to SHARED/STATIC/BOTH (default SHARED for MSVC, otherwise BOTH)")