Skip to content

Commit

Permalink
Update CMakeLists with proper pthread handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaser committed May 14, 2019
1 parent 3c08287 commit 447450d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -march=native")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(THREADS_PREFER_PTHREAD_FLAG ON)

find_package(Threads REQUIRED)

add_executable(sword
src/chain.cpp
Expand All @@ -33,6 +35,6 @@ if (NOT TARGET thread_pool)
add_subdirectory(vendor/thread_pool EXCLUDE_FROM_ALL)
endif()

target_link_libraries(sword thread_pool pthread)
target_link_libraries(sword thread_pool Threads::Threads)

install(TARGETS sword DESTINATION ${CMAKE_INSTALL_BINDIR})
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "database_alignment.hpp"
#include "utils.hpp"

static const char* version = "v1.0.1";
static const char* version = "v1.0.2";

static struct option options[] = {
{"query", required_argument, 0, 'i'},
Expand Down

0 comments on commit 447450d

Please sign in to comment.