find_package_detect_macos_archΒΆ
include (OrangesFindPackageHelpers)
View the full docs for this module
.
find_package_detect_macos_arch (<target> <libPath>)
This function runs lipo -archs <libPath>
and uses the output to set the OSX_ARCHITECTURES
property on the given <target>
.
The cache variable PROGRAM_LIPO
holds the path to the lipo executable.
This function does nothing on non-Apple platforms.
For example, if you have the absolute path of a library (such as the output of find_library()
), then
you can use this macro like so: