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:
authorDavid Zemon <david@zemon.name>2019-05-18 07:23:51 +0300
committerDavid Zemon <david@zemon.name>2019-05-18 07:28:53 +0300
commit6fe899af104930c381b8bb0498e93b7a09418241 (patch)
treeb3e333f707ca23758e25fd0b08ef4b9436fb4bde /example
parent107fe0a14231587a03921a22300fb988e0a9ebe0 (diff)
Set Threads::Threads dependency on spdlog libs - don't make user do it
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 b25ca252..033e7af6 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -38,7 +38,7 @@ find_package(Threads REQUIRED)
# Example of using pre-compiled library
add_executable(example example.cpp)
-target_link_libraries(example spdlog::spdlog Threads::Threads)
+target_link_libraries(example spdlog::spdlog)
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
find_library(log-lib log)
target_link_libraries(example log)
@@ -54,7 +54,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android")
endif ()
add_executable(multisink multisink.cpp)
-target_link_libraries(multisink spdlog::spdlog Threads::Threads)
+target_link_libraries(multisink spdlog::spdlog)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")