Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
summerandautum opened this issue Jul 19, 2022 · 1 comment

Comments

@summerandautum
Copy link

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants