Conda fixes for Windows (#14219)

This commit is contained in:
Ilya Lavrenov
2022-11-25 10:57:00 +04:00
committed by GitHub
parent 923409164f
commit 6954838582

View File

@@ -100,7 +100,12 @@ endif()
if(NOT TARGET gflags)
if(APPLE OR DEFINED ENV{CONDA_PREFIX} OR DEFINED ENV{HOMEBREW_PREFIX})
# conda-forge and brew contains only shared version of gflags
find_package(gflags QUIET COMPONENTS nothreads_shared)
if(ENV{CONDA_PREFIX} AND WIN32)
# conda-forge windows compiled as gflags
find_package(gflags QUIET COMPONENTS shared)
else()
find_package(gflags QUIET COMPONENTS nothreads_shared)
endif()
else()
find_package(gflags QUIET COMPONENTS nothreads_static)
endif()