CMake Error shows the version wrong
Created by: gaoshan2006
I installed gflags from source code. And gflags was built in /home/local/. Then when I compiled Paddle, I was meeting the following errors. I have verified the CMake version on my machine is 3.6 above 2.8, however it always shows "This file relies on consumers using CMake 2.8.12 or greater.", What's the reason ? Could you help me please ? Thanks
///////////////////////////////////////////////////////////////////////////////////////////////////////// cmake .. -DWITH_GPU=OFF -DWITH_DOC=OFF
-- 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 /home/local/lib/cmake/gflags/gflags-targets.cmake:66 (message): This file relies on consumers using CMake 2.8.12 or greater. Call Stack (most recent call first): /home/local/lib/cmake/gflags/gflags-config.cmake:10 (include) cmake/FindGflags.cmake:318 (find_package) CMakeLists.txt:27 (find_package) ////////////////////////////////////////////////////////////////////////////////////////////////////////////