File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,12 @@ else (MSVC)
49
49
set (CPPLINT_ARG_OUTPUT "--output=eclipse" )
50
50
set (CPPCHECK_ARG_TEMPLATE "--template=gcc" )
51
51
# Useful compile flags and extra warnings
52
- add_compile_options (-fstack-protector )
52
+ # Stack protection is not supported on MinGW-W64 on Windows, allow this flag to be turned off.
53
+ option (SQLITECPP_USE_STACK_PROTECTION "USE Stack Protection hardening." ON )
54
+ if (SQLITECPP_USE_STACK_PROTECTION )
55
+ message (STATUS "Using Stack Protection hardening" )
56
+ add_compile_options (-fstack-protector )
57
+ endif ()
53
58
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wswitch-enum -Wshadow -Wno-long-long" ) # C++ only, don't bother with sqlite3
54
59
if (CMAKE_COMPILER_IS_GNUCXX )
55
60
# GCC flags
You can’t perform that action at this time.
0 commit comments