--- CMakeLists.txt 2018-11-07 04:14:41.000000000 +0100 +++ - 2018-11-26 08:12:38.571296363 +0100 @@ -1253,8 +1253,10 @@ ) IF(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) - SET(HDRS ${HDRS} include/crashprint.h ) - SET(SRCS ${SRCS} src/crashprint.cpp) + IF(OCPN_USE_CRASHREPORT) + SET(HDRS ${HDRS} include/crashprint.h ) + SET(SRCS ${SRCS} src/crashprint.cpp) + ENDIF(OCPN_USE_CRASHREPORT) ENDIF(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) IF(QT_ANDROID)