We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f757b64 + 1aa8286 commit 9106e8dCopy full SHA for 9106e8d
1 file changed
CMakeLists.txt
@@ -49,7 +49,12 @@ else (MSVC)
49
set(CPPLINT_ARG_OUTPUT "--output=eclipse")
50
set(CPPCHECK_ARG_TEMPLATE "--template=gcc")
51
# Useful compile flags and extra warnings
52
- add_compile_options(-fstack-protector)
+ # 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()
58
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wswitch-enum -Wshadow -Wno-long-long") # C++ only, don't bother with sqlite3
59
if (CMAKE_COMPILER_IS_GNUCXX)
60
# GCC flags
0 commit comments