mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Merge pull request #1105 from jktjkt/do-not-impose-extra-warnings
Do not impose -Wextra -Wconversion etc on library users
This commit is contained in:
commit
80740f0e46
@ -80,12 +80,10 @@ target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
|
||||
#---------------------------------------------------------------------------------------
|
||||
if(SPDLOG_MASTER_PROJECT)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
|
||||
target_compile_options( spdlog PUBLIC -Wall -Wextra -Wconversion -pedantic -Wfatal-errors)
|
||||
target_compile_options( spdlog_header_only INTERFACE -Wall -Wextra -Wconversion -pedantic -Wfatal-errors)
|
||||
target_compile_options( spdlog PRIVATE -Wall -Wextra -Wconversion -pedantic -Wfatal-errors)
|
||||
endif()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
target_compile_options( spdlog PUBLIC /W3 /WX )
|
||||
target_compile_options( spdlog_header_only INTERFACE /W3 /WX)
|
||||
target_compile_options( spdlog PRIVATE /W3 /WX )
|
||||
endif()
|
||||
|
||||
include(cmake/sanitizers.cmake)
|
||||
|
Loading…
Reference in New Issue
Block a user