Gflag problem when compiling paddle
Created by: CrossLee1
When I compile paddle with cmake, the following errors occur:
CMake Error at /home/lib/cmake/gflags/gflags-export.cmake:16 (ADD_LIBRARY):
add_library cannot create imported target "gflags-static" because another
target with the same name already exists.
Call Stack (most recent call first):
/home/lib/cmake/gflags/gflags-config.cmake:10 (include)
cmake/FindGflags.cmake:318 (find_package)
cmake/check_packages.cmake:22 (find_package)
CMakeLists.txt:53 (include)
CMake Error at /home/lib/cmake/gflags/gflags-export.cmake:19 (ADD_LIBRARY):
add_library cannot create imported target "gflags_nothreads-static" because
another target with the same name already exists.
Call Stack (most recent call first):
/home/lib/cmake/gflags/gflags-config.cmake:10 (include)
cmake/FindGflags.cmake:318 (find_package)
cmake/check_packages.cmake:22 (find_package)
CMakeLists.txt:53 (include)
How to solve this problem? Thanks~