Compilation with conda build (#13083)

* Compilation with conda forge

* Fixed compilation with gcc 12

* Fixed tests compilation

* use macro instead of function

* Fixed uninitialized variable in tests

* Conda

* Conda
This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2022-10-05 08:38:38 +04:00
1 parent e1545622d3
commit 1bb15b1d18
33 files changed
+146 -64

No files matched your search

+4 -3
View File
@@ -109,9 +109,10 @@ endif()
####################################
if(NOT TARGET gflags)
if(NOT APPLE)
# on Apple only dynamic libraries are available
# also, we can easily mix arm64 and x86_64 binaries when cross-compile for Intel CPU
if(NOT APPLE AND NOT DEFINED ENV{CONDA_PREFIX})
# - conda-forge contains only dynamic libraries
# - on Apple only dynamic libraries are available
# also, we can easily mix arm64 and x86_64 binaries when cross-compile for Intel CPU
find_package(gflags QUIET COMPONENTS nothreads_static)
endif()