mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-09 20:26:09 -04:00
This commit is contained in:
parent
4fc2eeecf0
commit
46ef117e1f
@ -48,16 +48,19 @@ if (MSVC)
|
|||||||
if (MSVC_VERSION LESS 1900) # OR MSVC_TOOLSET_VERSION LESS 140)
|
if (MSVC_VERSION LESS 1900) # OR MSVC_TOOLSET_VERSION LESS 140)
|
||||||
message(ERROR "Visual Studio prior to 2015 is not supported anymore.")
|
message(ERROR "Visual Studio prior to 2015 is not supported anymore.")
|
||||||
endif (MSVC_VERSION LESS 1900)
|
endif (MSVC_VERSION LESS 1900)
|
||||||
else (MSVC)
|
else (MSVC) # Unix/macOS/MinGW
|
||||||
set(CPPLINT_ARG_OUTPUT "--output=eclipse")
|
set(CPPLINT_ARG_OUTPUT "--output=eclipse")
|
||||||
set(CPPCHECK_ARG_TEMPLATE "--template=gcc")
|
set(CPPCHECK_ARG_TEMPLATE "--template=gcc")
|
||||||
# Useful compile flags and extra warnings
|
# Useful compile flags and extra warnings
|
||||||
# Stack protection is not supported on MinGW-W64 on Windows, allow this flag to be turned off.
|
if (NOT MINGW)
|
||||||
option(SQLITECPP_USE_STACK_PROTECTION "USE Stack Protection hardening." ON)
|
# Stack protection is not supported on MinGW-W64 on Windows.
|
||||||
if (SQLITECPP_USE_STACK_PROTECTION)
|
# Allow this flag to be turned off.
|
||||||
message (STATUS "Using Stack Protection hardening")
|
option(SQLITECPP_USE_STACK_PROTECTION "USE Stack Protection hardening." ON)
|
||||||
add_compile_options(-fstack-protector)
|
if (SQLITECPP_USE_STACK_PROTECTION)
|
||||||
endif()
|
message (STATUS "Using Stack Protection hardening")
|
||||||
|
add_compile_options(-fstack-protector)
|
||||||
|
endif (SQLITECPP_USE_STACK_PROTECTION)
|
||||||
|
endif (NOT MINGW)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wswitch-enum -Wshadow -Wno-long-long") # C++ only, don't bother with sqlite3
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wswitch-enum -Wshadow -Wno-long-long") # C++ only, don't bother with sqlite3
|
||||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
# GCC flags
|
# GCC flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user