From 0e655b4f9a4804fe625802d40a3fe112fedadbc0 Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Wed, 6 Jun 2018 14:56:42 +0200 Subject: [PATCH] Fix option name in winconf-xxx.cmake The mistake was made by commit 7712d0ada0d09dca15cbb39705a34284858b05aa --- cmake/Modules/winconf-mingw.cmake | 4 ++-- cmake/Modules/winconf-msvc.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/Modules/winconf-mingw.cmake b/cmake/Modules/winconf-mingw.cmake index 542fadca5..70d7ac00a 100644 --- a/cmake/Modules/winconf-mingw.cmake +++ b/cmake/Modules/winconf-mingw.cmake @@ -1,9 +1,9 @@ -if (STACKTRACE_WIN) +if (STACKTRACE) if ("${WINXXBITS}" NOT STREQUAL "Win64") add_compile_options(-fno-omit-frame-pointer) endif ("${WINXXBITS}" NOT STREQUAL "Win64") link_libraries(libdbghelp -Wl,--export-all-symbols) -endif (STACKTRACE_WIN) +endif (STACKTRACE) if (("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") OR ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")) link_libraries(-Wl,--dynamicbase) diff --git a/cmake/Modules/winconf-msvc.cmake b/cmake/Modules/winconf-msvc.cmake index d678a5b27..89f812b28 100644 --- a/cmake/Modules/winconf-msvc.cmake +++ b/cmake/Modules/winconf-msvc.cmake @@ -1,4 +1,4 @@ -if (STACKTRACE_WIN) +if (STACKTRACE) if ("${WINXXBITS}" STREQUAL "Win64") add_compile_options(-Zi) else ("${WINXXBITS}" STREQUAL "Win64") @@ -6,7 +6,7 @@ if (STACKTRACE_WIN) add_compile_options(-Oy-) endif ("${WINXXBITS}" STREQUAL "Win64") link_libraries(dbghelp.lib) -endif (STACKTRACE_WIN) +endif (STACKTRACE) # Enable Wide characters add_definitions(-DTORRENT_USE_WPATH)