File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ option(SPDLOG_ENABLE_PCH "Build static or shared library using precompiled heade
6262# build position independent code
6363option (SPDLOG_BUILD_PIC "Build position independent code (-fPIC)" OFF )
6464
65+ # debug build postfix
66+ set (SPDLOG_DEBUG_POSTFIX "d" CACHE STRING "Filename postfix for libraries in debug builds" )
67+
6568# example options
6669option (SPDLOG_BUILD_EXAMPLE "Build example" ${SPDLOG_MASTER_PROJECT} )
6770option (SPDLOG_BUILD_EXAMPLE_HO "Build header only example" OFF )
@@ -191,7 +194,7 @@ spdlog_enable_warnings(spdlog)
191194
192195set_target_properties (spdlog PROPERTIES VERSION ${SPDLOG_VERSION} SOVERSION
193196 ${SPDLOG_VERSION_MAJOR} .${SPDLOG_VERSION_MINOR} )
194- set_target_properties (spdlog PROPERTIES DEBUG_POSTFIX d )
197+ set_target_properties (spdlog PROPERTIES DEBUG_POSTFIX ${SPDLOG_DEBUG_POSTFIX} )
195198
196199if (COMMAND target_precompile_headers AND SPDLOG_ENABLE_PCH)
197200 configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/pch.h.in ${PROJECT_BINARY_DIR} /spdlog_pch.h @ONLY)
You can’t perform that action at this time.
0 commit comments