We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9234091 commit 6954838Copy full SHA for 6954838
samples/cpp/CMakeLists.txt
@@ -100,7 +100,12 @@ endif()
100
if(NOT TARGET gflags)
101
if(APPLE OR DEFINED ENV{CONDA_PREFIX} OR DEFINED ENV{HOMEBREW_PREFIX})
102
# conda-forge and brew contains only shared version of gflags
103
- find_package(gflags QUIET COMPONENTS nothreads_shared)
+ if(ENV{CONDA_PREFIX} AND WIN32)
104
+ # conda-forge windows compiled as gflags
105
+ find_package(gflags QUIET COMPONENTS shared)
106
+ else()
107
+ find_package(gflags QUIET COMPONENTS nothreads_shared)
108
+ endif()
109
else()
110
find_package(gflags QUIET COMPONENTS nothreads_static)
111
endif()
0 commit comments