ADD_EXECUTABLE(memcached_sizes
               sizes.cc
               ${Memcached_SOURCE_DIR}/utilities/protocol2text.cc)
ADD_TEST(NAME memcached-sizes
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_sizes)

ADD_EXECUTABLE(memcached_sizes
               sizes.cc
               ${Memcached_SOURCE_DIR}/utilities/protocol2text.cc)

IF(ENABLE_DTRACE)
    ADD_DEPENDENCIES(memcached_sizes generate_memcached_dtrace_h)
ENDIF(ENABLE_DTRACE)

ADD_TEST(NAME memcached-sizes
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_sizes)

Add missing dependancy on memcached_dtrace.h
MB-19736: Add missing dependancy on memcached_dtrace.h

There is a missing build dependancy between the memcached_sizes target
and the generated header memcached_dtrace.h, which can cause the build
to fail if targets are built in parallel.  Note this only affects
targets which support DTrace - i.e. OS X.

Change-Id: Idcfcfe162cf706328143af7b3ec59dc61d37e544
Reviewed-on: http://review.couchbase.org/64444
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
