diff --git a/CMakeLists.txt b/CMakeLists.txt index c1e2a0b1ec..4a1e2ef7ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,14 +113,13 @@ cmake_dependent_option(ENABLE_THREADED_RESOLVER "Set to ON to enable threaded DN ON "NOT ENABLE_ARES" OFF) -option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF) -option(ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled" OFF) - include(PickyWarnings) +option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF) +option(ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled" ${ENABLE_DEBUG}) + if(ENABLE_DEBUG) set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS DEBUGBUILD) - set(ENABLE_CURLDEBUG ON) endif() if(ENABLE_CURLDEBUG) diff --git a/appveyor.sh b/appveyor.sh index bab572aa7c..cb96e58745 100644 --- a/appveyor.sh +++ b/appveyor.sh @@ -43,7 +43,7 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then [ "${PRJ_CFG}" = 'Release' ] && options+=' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=' [[ "${PRJ_GEN}" = *'Visual Studio'* ]] && options+=' -DCMAKE_VS_GLOBALS=TrackFileAccess=false' if [ "${PRJ_GEN}" = 'Visual Studio 9 2008' ]; then - [ "${DEBUG}" = 'ON' ] && [ "${SHARED}" = 'ON' ] && SKIP_RUN='Crash on startup in -DDEBUGBUILD shared builds' + [ "${DEBUG}" = 'ON' ] && [ "${SHARED}" = 'ON' ] && SKIP_RUN='Crash on startup in ENABLE_DEBUG=ON shared builds' # Fails to run without this due to missing MSVCR90.dll / MSVCR90D.dll options+=' -DCURL_STATIC_CRT=ON' fi