mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-27 07:14:12 +08:00
Fixed target_compile_options in cmake
This commit is contained in:
parent
ca14ae19db
commit
54f1941691
@ -68,11 +68,11 @@ target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
|
|||||||
#---------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------
|
||||||
if(SPDLOG_MASTER_PROJECT)
|
if(SPDLOG_MASTER_PROJECT)
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
|
||||||
target_compile_options( spdlog PRIVATE -Wall -Wextra -Wconversion -pedantic -Wfatal-errors)
|
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_header_only INTERFACE -Wall -Wextra -Wconversion -pedantic -Wfatal-errors)
|
||||||
endif()
|
endif()
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||||
target_compile_options( spdlog PRIVATE /W3 /WX )
|
target_compile_options( spdlog PUBLIC /W3 /WX )
|
||||||
target_compile_options( spdlog_header_only INTERFACE /W3 /WX)
|
target_compile_options( spdlog_header_only INTERFACE /W3 /WX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user