This reverts commit bca3f3e441.
This commit is contained in:
@@ -100,11 +100,12 @@ endif()
|
||||
if(TARGET gflags)
|
||||
set(GFLAGS_TARGET gflags)
|
||||
elseif(gflags_required)
|
||||
set(GFLAGS_USE_TARGET_NAMESPACE ON)
|
||||
set(GFLAGS_SHARED OFF)
|
||||
set(GFLAGS_NOTHREADS ON)
|
||||
|
||||
find_package(gflags QUIET)
|
||||
if(EXISTS /etc/debian_version)
|
||||
set(gflags_component nothreads_static)
|
||||
else()
|
||||
set(gflags_component shared)
|
||||
endif()
|
||||
find_package(gflags QUIET OPTIONAL_COMPONENTS ${gflags_component})
|
||||
if(gflags_FOUND)
|
||||
if(TARGET ${GFLAGS_TARGET})
|
||||
# nothing
|
||||
|
||||
Reference in New Issue
Block a user