• Gregor Jasny's avatar
    Xcode: Fixup XCTest bundle location for Xcode 7.3 · a364d251
    Gregor Jasny authored
    Prior to Xcode 7.3 a XCTest bundle was built like an ordinary
    bundle. But starting with Xcode 7.3 it is implicitely built as
    a plugin for the test host. It looks like in that case the
    'Build Products Path' is ignored.
    
    This patch simply sets the CMake target output path to the value
    Xcode expects internally to get a matching view of both.
    
    The command:
    
      xcodebuild -showBuildSettings -target CocoaExampleTests -configuration Debug
    
    Output with Xcode 7.2:
    
      TARGET_BUILD_DIR = .../Tests/XCTest/Debug
    
    Output with Xcode 7.3
    
      TARGET_BUILD_DIR = .../Tests/XCTest/Debug/CocoaExample.app/Contents/PlugIns
    Signed-off-by: Gregor Jasny's avatarGregor Jasny <gjasny@googlemail.com>
    a364d251
FindXCTest.cmake 6.25 KB