Determining if the function gethrtime exists failed with the following output:
Change Dir: /Users/tomaskorcak/dev/microcrawler/libcouchbase/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_bad06/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_bad06.dir/build.make CMakeFiles/cmTC_bad06.dir/build
Building C object CMakeFiles/cmTC_bad06.dir/CheckFunctionExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -fno-strict-aliasing -pthread -DCHECK_FUNCTION_EXISTS=gethrtime -o CMakeFiles/cmTC_bad06.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.6.2/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_bad06
/usr/local/Cellar/cmake/3.6.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bad06.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -fno-strict-aliasing -pthread -DCHECK_FUNCTION_EXISTS=gethrtime -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_bad06.dir/CheckFunctionExists.c.o -o cmTC_bad06
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"_gethrtime", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_bad06] Error 1
make: *** [cmTC_bad06/fast] Error 2