zycv / OpenSpeaker

OpenSpeaker is a completely independent and open source speaker recognition project. It provides the entire process of speaker recognition including multi-platform deployment and model optimization.
Apache License 2.0
60 stars 10 forks source link

编译时gflags报错:Some (but not all) targets in this export set were already defined. #8

Open summerandautum opened 2 years ago

summerandautum commented 2 years ago

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

xiangdeyizhang commented 1 year ago

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)