mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Added pedantic flag to compiler in cmake
This commit is contained in:
parent
137f801ec7
commit
ebea09c8b4
@ -28,6 +28,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
|||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
add_compile_options("-Wall")
|
add_compile_options("-Wall")
|
||||||
add_compile_options("-Wextra")
|
add_compile_options("-Wextra")
|
||||||
|
add_compile_options("-pedantic")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user