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:
authorgabime <gmelman1@gmail.com>2019-05-24 01:39:02 +0300
committergabime <gmelman1@gmail.com>2019-05-24 01:39:02 +0300
commit54f1941691ac0f8b51d8122a98c259c87cf8026b (patch)
tree2f355633a54cd87c042e458d38edd6d038263019 /CMakeLists.txt
parentca14ae19db47b53721384d3addea5fd3b5cb1675 (diff)
Fixed target_compile_options in cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea4b3167..2e336521 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,11 +68,11 @@ 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 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)
endif()
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)
endif()