OpenSpeaker
OpenSpeaker copied to clipboard
编译时gflags报错:Some (but not all) targets in this export set were already defined.
CMake Error at /usr/local/lib/cmake/gflags/gflags-nonamespace-targets.cmake:37 (message): Some (but not all) targets in this export set were already defined.
Targets Defined: gflags_nothreads_static
Targets not yet defined: gflags_static
third_party: gflags
#FetchContent_Declare(gflags
URL https://github.com/gflags/gflags/archive/v2.2.1.zip
URL_HASH SHA256=4e44b69e709c826734dbbbd5208f61888a2faf63f239d73d8ba0011b2dccc97a
#) #FetchContent_MakeAvailable(gflags)
find_package(gflags REQUIRED) find_package(gflags COMPONENTS nothreads_static)