Skip to content

Commit

Permalink
Merge pull request #6 from hunter-packages/pr.threads
Browse files Browse the repository at this point in the history
find_package(THREADS REQUIRED), etc
  • Loading branch information
headupinclouds authored May 2, 2018
2 parents 8dbfe14 + 37f2e46 commit ce5951b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ find_package(fmt CONFIG REQUIRED)
target_link_libraries(spdlog INTERFACE fmt::fmt)
target_compile_definitions(spdlog INTERFACE SPDLOG_FMT_EXTERNAL=1)

### threads ###
find_package(Threads REQUIRED)
target_link_libraries(spdlog INTERFACE Threads::Threads)

option(SPDLOG_BUILD_EXAMPLES "Build examples" OFF)
option(SPDLOG_BUILD_TESTS "Build tests" OFF)

Expand Down
1 change: 1 addition & 0 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ if(@ANDROID@)
endif()

find_package(fmt REQUIRED)
find_package(Threads REQUIRED)

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
check_required_components("@PROJECT_NAME@")

0 comments on commit ce5951b

Please sign in to comment.