Skip to content

Commit

Permalink
Allow custom libprime directory (valhalla#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXitoi authored and kevinkreiser committed Jul 26, 2018
1 parent 865fdc2 commit ee9538c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ find_package(Threads REQUIRED)
add_library(libprime_server INTERFACE IMPORTED)
if(ENABLE_SERVICES)
pkg_check_modules(libprime_server REQUIRED libprime_server>=0.6.3)
# workaround for https://gitlab.kitware.com/cmake/cmake/issues/15804
find_library(libprime_server_LIBRARY
NAME ${libprime_server_LIBRARIES}
HINTS ${libprime_server_LIBRARY_DIRS})
set_target_properties(libprime_server PROPERTIES
INTERFACE_LINK_LIBRARIES "${libprime_server_LIBRARIES}"
INTERFACE_LINK_LIBRARIES "${libprime_server_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${libprime_server_INCLUDE_DIRS}"
INTERFACE_COMPILE_DEFINITIONS HAVE_HTTP)
endif()
Expand Down

0 comments on commit ee9538c

Please sign in to comment.