From ac02490c979ddd55501c0c2e9175a597d465e06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 2 Feb 2022 16:48:25 +0300 Subject: [PATCH] mdbx-cmake: sync the `compiler.cmake` module with other projects. --- cmake/compiler.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 7607c5dc..3d7518ca 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -499,7 +499,7 @@ option(ENABLE_BACKTRACE "Enable output of fiber backtrace information in 'show is output with resolved function (symbol) names. Otherwise only frame addresses are printed." OFF) -set(HAVE_BFD False) +set(HAVE_BFD FALSE) if(ENABLE_BACKTRACE) if(NOT (X86_32 OR X86_64) OR NOT CMAKE_COMPILER_IS_GNU${CMAKE_PRIMARY_LANG}) # We only know this option to work with gcc @@ -658,6 +658,7 @@ macro(setup_compile_flags) if(NOT MSVC_VERSION LESS 1910) add_compile_flags("CXX" "/Zc:__cplusplus") endif() + add_compile_flags("C;CXX" "/W4") add_compile_flags("C;CXX" "/utf-8") else() if(CC_HAS_WALL)