error in build from source on centos 7
Created by: zuowang
sudo cmake .. -DWITH_GPU=ON -DWITH_SWIG_PY=ON
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found PROTOBUF: /usr/lib64/libprotobuf.so
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
-- Found PythonInterp: /bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found NumPy: /usr/lib64/python2.7/site-packages/numpy/core/include
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test FIND_AVX_20
-- Performing Test FIND_AVX_20 - Success
-- Performing Test FIND_AVX_10
-- Performing Test FIND_AVX_10 - Success
-- Find CPU supports -mavx2 -mavx.
-- Found LIBGLOG: /usr/local/lib/libglog.so
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
CMake Error at /usr/local/lib/cmake/gflags/gflags-targets.cmake:63 (message):
This file relies on consumers using CMake 2.8.12 or greater.
Call Stack (most recent call first):
/usr/local/lib/cmake/gflags/gflags-config.cmake:10 (include)
cmake/FindGflags.cmake:318 (find_package)
CMakeLists.txt:22 (find_package)
-- Configuring incomplete, errors occurred!