diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-10-19 13:21:14 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-10-19 13:21:14 +0300 |
commit | 795445369296f8cb86cae2bc7896b0314b871b81 (patch) | |
tree | a04c78c54a6eacc729546bf1c162d3e249349fe7 /src | |
parent | a4409c5c1b39dc208518bd0f2868fc2894bdcb3f (diff) |
Fix non gpl non linux build
Diffstat (limited to 'src')
-rw-r--r-- | src/libcrashreporter-gui/CMakeLists.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/libcrashreporter-gui/CMakeLists.txt b/src/libcrashreporter-gui/CMakeLists.txt index 9f2a1f6..4420e33 100644 --- a/src/libcrashreporter-gui/CMakeLists.txt +++ b/src/libcrashreporter-gui/CMakeLists.txt @@ -1,28 +1,28 @@ -if(NOT ENABLE_GPL_CODE) - message(FATAL_ERROR "Using the Linux build requires ENABLE_GPL_CODE to be true.") -endif() - set(crashreporter_SOURCES CrashReporter.cpp CrashReporterGzip.cpp) set(crashreporter_UI CrashReporter.ui) set(crashreporter_RC ../../resources.qrc) set(crashreporter_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES}) if(UNIX AND NOT APPLE) -list(APPEND crashreporter_INCLUDE_DIRECTORIES - ${CMAKE_CURRENT_LIST_DIR}/../../3rdparty/drkonqi-parser -) -list(APPEND crashreporter_LIBRARIES - drkonqi_backtrace_parser -) -list(APPEND crashreporter_SOURCES - linux-backtrace-generator/crashedapplication.cpp - linux-backtrace-generator/backtracegenerator.cpp - linux-backtrace-generator/debugger.cpp - linux-backtrace-generator/crqt-kmacroexpander.cpp - linux-backtrace-generator/crqt-kmacroexpander_unix.cpp - linux-backtrace-generator/crqt-kshell.cpp - linux-backtrace-generator/crqt-kshell_unix.cpp -) + if(NOT ENABLE_GPL_CODE) + message(FATAL_ERROR "Using the Linux build requires ENABLE_GPL_CODE to be true.") + endif() + + list(APPEND crashreporter_INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_LIST_DIR}/../../3rdparty/drkonqi-parser + ) + list(APPEND crashreporter_LIBRARIES + drkonqi_backtrace_parser + ) + list(APPEND crashreporter_SOURCES + linux-backtrace-generator/crashedapplication.cpp + linux-backtrace-generator/backtracegenerator.cpp + linux-backtrace-generator/debugger.cpp + linux-backtrace-generator/crqt-kmacroexpander.cpp + linux-backtrace-generator/crqt-kmacroexpander_unix.cpp + linux-backtrace-generator/crqt-kshell.cpp + linux-backtrace-generator/crqt-kshell_unix.cpp + ) endif() add_library(crashreporter-gui STATIC |