https://github.com/Kitware/CMake
Revision 61acaa12af7952f6eaae77b98f2c21630dc2d64d authored by Tor Arne Vestbø on 13 July 2022, 22:28:38 UTC, committed by Brad King on 16 August 2022, 17:35:36 UTC
An empty INSTALL_PATH will confuse Xcode, resulting in the archive
action producing archives that can not be uploaded to the App Store.

The logic to pull out a install_name_dir only applies to
SHARED_LIBRARY targets, so we can skip the setting of the
property for all other targets.

There might be cases where the INSTALL_PATH code path will also
end up setting an empty INSTALL_PATH, but it's unclear whether
this is a problem, so to keep the patch minimal the existing
code is left as is.

Fixes: #15183
1 parent 5b949bb
Raw File
Tip revision: 61acaa12af7952f6eaae77b98f2c21630dc2d64d authored by Tor Arne Vestbø on 13 July 2022, 22:28:38 UTC
xcode: Don't set INSTALL_PATH unless target is SHARED_LIBRARY
Tip revision: 61acaa1
srcgenex_includes.c.in

#include "@TARGET_NAME@.h"

int @TARGET_NAME@(void)
{
  return 0;
}

int main(int argc, char* argv[])
{
  return @TARGET_NAME@();
}
back to top