OpenSpeaker icon indicating copy to clipboard operation
OpenSpeaker copied to clipboard

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

Open summerandautum opened this issue 2 years ago • 1 comments

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

summerandautum avatar Jul 19 '22 02:07 summerandautum

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)

xiangdeyizhang avatar Feb 21 '23 07:02 xiangdeyizhang