From: Ivan Maidanski Date: Wed, 21 Aug 2019 21:38:42 +0000 (+0300) Subject: Cause fatal error in case of incompatible arguments passed to CMake script X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5a2760d99ac441a9638ecb2e3f0d6cd70da3e98;p=gc Cause fatal error in case of incompatible arguments passed to CMake script * CMakeLists.txt [enable_checksums && (enable_munmap || enable_threads)]: Change message() type to FATAL_ERROR. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ad0c85fd..ba0b55f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,7 +257,7 @@ endif() if (enable_checksums) if (enable_munmap OR enable_threads) - message("CHECKSUMS not compatible with USE_MUNMAP or threads") + message(FATAL_ERROR "CHECKSUMS not compatible with USE_MUNMAP or threads") endif() add_definitions("-DCHECKSUMS") set(SRC ${SRC} checksums.c)