cpn: needs comm and MySQL at link time

The dependency on fail-comm exists not only at compile time (the
latter is due to protobuf header generation).

Change-Id: I2bae51e763d9a385bda94e77df3e88619fa28a30
This commit is contained in:
Horst Schirmeier
2013-11-19 13:37:53 -08:00
committed by Horst Schirmeier
parent 813414984c
commit 17e76c140b

View File

@ -4,6 +4,11 @@ set(SRCS
DatabaseCampaign.cc
)
add_library(fail-cpn ${SRCS})
find_package(MySQL REQUIRED)
include_directories(${MYSQL_INCLUDE_DIR})
add_library(fail-cpn ${SRCS})
target_link_libraries(fail-cpn fail-comm ${MYSQL_LIBRARIES})
# make sure protobufs are generated before we include them
add_dependencies(fail-cpn fail-comm)