summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPaul Harris <paulharris@computer.org>2017-07-06 23:53:41 +0800
committerDaniel Stenberg <daniel@haxx.se>2017-07-07 14:29:26 +0200
commit45f39945ec929f9ac725c318c8657e4b920c22c5 (patch)
tree49ab56bc30220ef933d2028e9176362b2a45162b /CMakeLists.txt
parentbbc9c6d1445e971706801f9e1077330213993e01 (diff)
downloadcurl-45f39945ec929f9ac725c318c8657e4b920c22c5.tar.gz
cmake: offer CMAKE_DEBUG_POSTFIX when building with MSVC
Removes BUILD_RELEASE_DEBUG_DIRS since it wasn't used anywhere. Closes #1649
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 25d8fd8f0..8646c6adc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -104,6 +104,9 @@ if (ENABLE_CURLDEBUG)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS CURLDEBUG)
endif()
+# For debug libs and exes, add "-d" postfix
+set(CMAKE_DEBUG_POSTFIX "-d" CACHE STRING "Set debug library postfix" FORCE)
+
# initialize CURL_LIBS
set(CURL_LIBS "")
@@ -118,11 +121,6 @@ if(ENABLE_ARES)
set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY})
endif()
-if(MSVC)
- option(BUILD_RELEASE_DEBUG_DIRS "Set OFF to build each configuration to a separate directory" OFF)
- mark_as_advanced(BUILD_RELEASE_DEBUG_DIRS)
-endif()
-
include(CurlSymbolHiding)
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF)