Skip to content

Commit

Permalink
Fix thread pool dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
motxx committed Jun 27, 2017
1 parent 58232e8 commit 6dd4e1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ add_dependencies(ed25519 mizukisonoko_ed25519)
####################################
ExternalProject_Add(warchant_thread_pool
GIT_REPOSITORY "https://github.com/Warchant/thread-pool-cpp.git"
GIT_TAG "a24e0726a7e804c55555fca16bc6f42d7ff4723a"
BUILD_COMMAND "" # remove build step, header only lib
CONFIGURE_COMMAND "" # remove configure step
INSTALL_COMMAND "" # remove install step
Expand All @@ -77,9 +78,9 @@ set(thread_pool_SOURCE_DIR "${source_dir}")

# since it is header only, we changed STATIC to INTERFACE below
add_library(thread_pool INTERFACE IMPORTED)
file(MAKE_DIRECTORY ${thread_pool_SOURCE_DIR}/thread_pool)
file(MAKE_DIRECTORY ${thread_pool_SOURCE_DIR}/include)
set_target_properties(thread_pool PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${thread_pool_SOURCE_DIR}/thread_pool
INTERFACE_INCLUDE_DIRECTORIES ${thread_pool_SOURCE_DIR}/include/
)
add_dependencies(thread_pool warchant_thread_pool)

Expand Down

0 comments on commit 6dd4e1c

Please sign in to comment.