tests: fix pkd build breakages

Fix a build breakage when '-DWITH_SERVER=OFF' is set: skip building the
pkd test for that case.  Add some missing includes for the OpenIndiana
and FreeBSD builds.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jon Simons
2014-10-13 03:06:39 -07:00
committed by Andreas Schneider
parent cd2dc3770a
commit a25790d343
4 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
project(pkd C)
if (UNIX AND NOT WIN32)
if (WITH_SERVER AND UNIX AND NOT WIN32)
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
@@ -32,4 +32,4 @@ set(pkd_libs
add_executable(pkd_hello ${pkd_hello_src})
target_link_libraries(pkd_hello ${pkd_libs})
endif (UNIX AND NOT WIN32)
endif (WITH_SERVER AND UNIX AND NOT WIN32)