From 3dc6e69f93fb1c0af8120e52052fbf513076025c Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 22 Mar 2014 19:30:21 +0100 Subject: [PATCH] Backtrace generation depends on the target system, not the host We were checking for CMAKE_HOST_WIN32 and CMAKE_HOST_UNIX for determining which kind of backtrace generation support to build. However, this should obviously depend on the target platform, not on the platform we build on. So let's use WIN32 and UNIX instead. --- src/common/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 6a442184..0191c811 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -58,12 +58,11 @@ if(APPLE) set(SOURCES ${SOURCES} mac_utils.cpp) endif(APPLE) -if(CMAKE_HOST_WIN32) +if (WIN32) set(SOURCES ${SOURCES} logbacktrace_win.cpp) -endif(CMAKE_HOST_WIN32) -if(CMAKE_HOST_UNIX) +elseif (UNIX) set(SOURCES ${SOURCES} logbacktrace_unix.cpp) -endif(CMAKE_HOST_UNIX) +endif() add_library(mod_common STATIC ${SOURCES}) qt_use_modules(mod_common Core Network) -- 2.20.1