Conda fixes for Windows (#14219)

This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2022-11-25 10:57:00 +04:00
1 parent 923409164f
commit 6954838582
1 file changed
+6 -1
+6 -1
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()