From 8949c7e569c32761a36b67d14e6008193bd7b7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sun, 1 Mar 2020 17:11:20 +0100 Subject: [PATCH] added CMake option ENABLE_CHECK_INTERNAL (#2557) --- cmake/compilerDefinitions.cmake | 3 +++ cmake/options.cmake | 1 + cmake/printInfo.cmake | 1 + 3 files changed, 5 insertions(+) diff --git a/cmake/compilerDefinitions.cmake b/cmake/compilerDefinitions.cmake index 80f336b83..a88631561 100644 --- a/cmake/compilerDefinitions.cmake +++ b/cmake/compilerDefinitions.cmake @@ -7,3 +7,6 @@ if (UNIX) endif() add_definitions(-DFILESDIR="${FILESDIR}") endif() +if (ENABLE_CHECK_INTERNAL) + add_definitions(-DCHECK_INTERNAL) +endif() diff --git a/cmake/options.cmake b/cmake/options.cmake index 0d8338364..5e49316e6 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -36,6 +36,7 @@ else() endif() option(BUILD_TESTS "Build tests" OFF) +option(ENABLE_CHECK_INTERNAL "Enable internal checks" OFF) option(BUILD_GUI "Build the qt application" OFF) option(WITH_QCHART "When building GUI(need BUILD_GUI=ON), use Qt5 Charts" OFF) diff --git a/cmake/printInfo.cmake b/cmake/printInfo.cmake index 8e3ea18ed..91c54de9e 100644 --- a/cmake/printInfo.cmake +++ b/cmake/printInfo.cmake @@ -32,6 +32,7 @@ else() message( STATUS "BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}" ) endif(NOT DEFINED BUILD_SHARED_LIBS) message( STATUS "BUILD_TESTS = ${BUILD_TESTS}" ) +message( STATUS "ENABLE_CHECK_INTERNAL = ${ENABLE_CHECK_INTERNAL}" ) message( STATUS "BUILD_GUI = ${BUILD_GUI}" ) message( STATUS "WITH_QCHART = ${WITH_QCHART}" ) message( STATUS )