CheckCXXCompilerFlag reporting flags as invalid when embed-bitcode is utilised
Since CMake 3.23 (#22961) linker warnings are handled also accordingly within context of CheckCXXCompilerFlag. Though this new behaviour is leading to not being able to utilise -fembed-bitcode
compiler flags in combination with CheckCXXCompilerFlag checks. As the -fembed-bitcode
flags are leading to linker warnings due to the default usage of -headerpad_max_install_names
with the Darwin platform module:
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
Edited by MvdHurk