You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XCode command line tools comes with bundled zlib, which has .tld extension. this cmake file sets static lib usage for zlib, which would make static library preferred, although FindZLIB.cmake from cmake installation uses this variable to set up static linking exclusively. This results in zlib being not found, as it only searches for .a files.
# Support preference of static libs by adjusting CMAKE_FIND_LIBRARY_SUFFIXES
if(ZLIB_USE_STATIC_LIBS)
if(WIN32)
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
else()
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
endif()
endif()
Similar example for protobuf.
# Support preference of static libs by adjusting CMAKE_FIND_LIBRARY_SUFFIXES
if( Protobuf_USE_STATIC_LIBS )
set( _protobuf_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
if(WIN32)
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
else()
set(CMAKE_FIND_LIBRARY_SUFFIXES .a )
endif()
endif()
As you can see, we expected zlib is downloaded with homebrew (not the system zlib).
Also, protobuf must be build from source on Mac, because homebrew has too fresh version, which is incompatible with our grpc driver implementation
XCode command line tools comes with bundled zlib, which has .tld extension. this cmake file sets static lib usage for zlib, which would make static library preferred, although FindZLIB.cmake from cmake installation uses this variable to set up static linking exclusively. This results in zlib being not found, as it only searches for .a files.
Similar example for protobuf.
build-log-debug-find.txt
build-log-trace.txt
Is setting static only linking of above libraries a requirement? Definition of USERVER_USE_STATIC_LIBS suggests that those settings are unwanted.
The text was updated successfully, but these errors were encountered: