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-06-10 18:32:10 +0300
committergabime <gmelman1@gmail.com>2019-06-10 18:32:10 +0300
commitcf64f2baca27005037c3b962f78a519c38a6ab64 (patch)
treeccc4f1ab2484a35215a1e324393811ccb1101cf5 /example
parent68a0193d952eb0b39ccb54e3a8c60b72c3f189a9 (diff)
Fixed CMake address sanitizer
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 1f22b990..ac738161 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -14,14 +14,14 @@ endif()
#---------------------------------------------------------------------------------------
add_executable(example example.cpp)
spdlog_enable_warnings(example)
-target_link_libraries(example spdlog::spdlog)
+target_link_libraries(example PRIVATE spdlog::spdlog)
#---------------------------------------------------------------------------------------
# Example of using header-only library
#---------------------------------------------------------------------------------------
add_executable(example_header_only example.cpp)
spdlog_enable_warnings(example_header_only)
-target_link_libraries(example_header_only spdlog::spdlog_header_only)
+target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only)
# Create logs directory
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")