Skip to content

Commit

Permalink
Merge pull request #10 from pandax381/fix-issue_9
Browse files Browse the repository at this point in the history
Build: fix failed to generate the executable file #9
  • Loading branch information
edsiper committed Jun 3, 2015
2 parents 002c13a + 68235df commit 44bad99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ install(TARGETS fluent-bit-shared LIBRARY DESTINATION lib)

# Executable
if(NOT WITHOUT_BIN)
find_package (Threads)
add_executable(fluent-bit-bin fluent-bit.c)
target_link_libraries(fluent-bit-bin fluent-bit-static)
target_link_libraries(fluent-bit-bin fluent-bit-static ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(fluent-bit-bin
PROPERTIES OUTPUT_NAME fluent-bit)
install(TARGETS fluent-bit-bin RUNTIME DESTINATION bin)
Expand Down

0 comments on commit 44bad99

Please sign in to comment.