So my understanding is that on mac if I want to build universal library or executable I need to do :
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE INTERNAL "" FORCE)
Now this is great, but if say, this project needs to link against brew - openSSL or vcpkg - zlib... Then I need to somehow link against 2 openSSL versions? Since vcpkg builds for either arm or intel, I have now 2x vcpkg installed, 1 for each architecture. I also have 2x brew installed for each architecture.
So my question is... How can I
find_package(OpenSSL REQUIRED ${BREW_INTEL})
find_package(OpenSSL REQUIRED ${BREW_ARM})
find_package(zlib REQUIRED ${vcpkg_INTEL})
find_package(zlib REQUIRED ${vcpkg_ARM})
So that each Architecture targets correct sub library... version ?
Am I wrong with this? Right? how do I bite it? Thanks!