cmake: set -d postfix for debug builds if not specified

using -DCMAKE_DEBUG_POSTFIX explicitly

       fixes #2121, obsoletes #2384
This commit is contained in:
Sergei Nikulov 2018-05-24 00:37:53 +03:00 committed by Sergei Nikulov
parent d353af0014
commit 2c0225e042
5 changed files with 3 additions and 24 deletions

View file

@ -98,13 +98,6 @@ if(WIN32)
if(NOT CURL_STATICLIB)
# Add "_imp" as a suffix before the extension to avoid conflicting with the statically linked "libcurl.lib"
set_target_properties(${LIB_NAME} PROPERTIES IMPORT_SUFFIX "_imp.lib")
set_target_properties (${LIB_NAME} PROPERTIES
DEBUG_POSTFIX "-d"
# Note: no postfix for release variants, let user choose what style of release he wants
# MINSIZEREL_POSTFIX "-z"
# RELWITHDEBINFO_POSTFIX "-g"
)
endif()
endif()