Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabi Melman <gmelman1@gmail.com>2019-06-10 12:35:42 +0300
committerGitHub <noreply@github.com>2019-06-10 12:35:42 +0300
commit80740f0e46034a2b958238858aa49f37acd60288 (patch)
tree8dc033a7a32e133057362ddd2d0d258e87409648 /CMakeLists.txt
parente0b4ec54bd044e414081d0554b71994b6ce74e25 (diff)
parentc60f790793d42398f94634d0f1a11ddef7609b05 (diff)
Merge pull request #1105 from jktjkt/do-not-impose-extra-warnings
Do not impose -Wextra -Wconversion etc on library users
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f99bfc83..dcc54309 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
@@ -162,4 +160,4 @@ if (SPDLOG_INSTALL)
#---------------------------------------------------------------------------------------
include(cmake/spdlogCPack.cmake)
-endif () \ No newline at end of file
+endif ()