tarantool/nosqlbench

A little compilation error when build on different directories

Opened this issue · 0 comments

Hi, the CMakeLists.txt has a little error when you compile the project at other directory, not at the source directory:
[ 86%] Building C object src/CMakeFiles/nb.dir/nb_db.c.o
/home/dodia/nosqlbench/src/nb_db.c:38:20: fatal error: config.h: No such file or directory
There may add a line to the top CMakeList.txt file at line 37, including the binary_dir/src directory to resolve the problem:
include_directories("${PROJECT_SOURCE_DIR}/third_party/memcached/memcached")
include_directories("${PROJECT_BINARY_DIR}/src")