This resolves an error with the static gflags library which would
other wise not link properly with an undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
error under Ubuntu 14.04.
target_link_libraries(caffe proto
${BLAS_LIBRARIES}
${Boost_LIBRARIES}
- ${CMAKE_THREAD_LIBS_INIT}
${GFLAGS_LIBRARIES}
${GLOG_LIBRARIES}
${HDF5_LIBRARIES}
${LEVELDB_LIBS}
${LMDB_LIBRARIES}
${OpenCV_LIBS}
+ ${CMAKE_THREAD_LIBS_INIT}
)
#set output directory