]> granicus.if.org Git - gc/commitdiff
Cause fatal error in case of incompatible arguments passed to CMake script
authorIvan Maidanski <ivmai@mail.ru>
Wed, 21 Aug 2019 21:38:42 +0000 (00:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 21 Aug 2019 21:38:42 +0000 (00:38 +0300)
* CMakeLists.txt [enable_checksums && (enable_munmap
|| enable_threads)]: Change message() type to FATAL_ERROR.

CMakeLists.txt

index ad0c85fdc054c4a19b6cdd5b7aa0065e0c42bc0d..ba0b55f0e86286052d9c5053f0acb115911c0e26 100644 (file)
@@ -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)