Skip to content

Commit

Permalink
Adding curl library to build with vault (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: Jigar Gada <jgada@asapp.com>
  • Loading branch information
jigar23 and jgada-asapp authored Apr 28, 2020
1 parent c747223 commit c2dc784
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(CMAKE_CXX_FLAGS_DEBUG --coverage)

option(ENABLE_TEST "Enable tests?" ON)
option(ENABLE_INTEGRATION_TEST "Enable integration tests?" OFF)
option(LINK_CURL "Link curl library for vault" OFF)

find_package(CURL)
if (CURL_FOUND)
Expand Down Expand Up @@ -44,6 +45,10 @@ set_target_properties(vault PROPERTIES

target_include_directories(vault PRIVATE include)
target_include_directories(vault PRIVATE src)

if(LINK_CURL)
target_link_libraries(vault curl)
endif(LINK_CURL)
if (CMAKE_BUILD_TYPE MATCHES Debug)
target_link_libraries(vault gcov)
endif ()
Expand Down

0 comments on commit c2dc784

Please sign in to comment.