diff options
author | Brad King <brad.king@kitware.com> | 2023-05-15 13:50:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-15 14:18:54 (GMT) |
commit | a4d114e8cdee623adb73af812968d7de67cdc639 (patch) | |
tree | 6328031449b9ea822616de87edcc4cff759c5884 /Tests/RunCMake/XcodeProject-Device/DeploymentTarget.c | |
parent | bafb6e999d41a2b613e3c92ade97025de9d2ca27 (diff) | |
download | CMake-a4d114e8cdee623adb73af812968d7de67cdc639.zip CMake-a4d114e8cdee623adb73af812968d7de67cdc639.tar.gz CMake-a4d114e8cdee623adb73af812968d7de67cdc639.tar.bz2 |
Tests: Split some RunCMake.XcodeProject cases into a separate test
The `RunCMake.XcodeProject` has many cases and occasionally fails
due to timeout. Move iOS and other device-specific cases to a new
`RunCMake.XcodeProject-Device` test.
Diffstat (limited to 'Tests/RunCMake/XcodeProject-Device/DeploymentTarget.c')
-rw-r--r-- | Tests/RunCMake/XcodeProject-Device/DeploymentTarget.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject-Device/DeploymentTarget.c b/Tests/RunCMake/XcodeProject-Device/DeploymentTarget.c new file mode 100644 index 0000000..5e0f40f --- /dev/null +++ b/Tests/RunCMake/XcodeProject-Device/DeploymentTarget.c @@ -0,0 +1,26 @@ +#include <Availability.h> +#include <TargetConditionals.h> + +#if TARGET_OS_OSX +# if __MAC_OS_X_VERSION_MIN_REQUIRED != __MAC_10_11 +# error macOS deployment version mismatch +# endif +#elif TARGET_OS_IOS +# if __IPHONE_OS_VERSION_MIN_REQUIRED != __IPHONE_9_1 +# error iOS deployment version mismatch +# endif +#elif TARGET_OS_WATCH +# if __WATCH_OS_VERSION_MIN_REQUIRED != __WATCHOS_2_0 +# error watchOS deployment version mismatch +# endif +#elif TARGET_OS_TV +# if __TV_OS_VERSION_MIN_REQUIRED != __TVOS_9_0 +# error tvOS deployment version mismatch +# endif +#else +# error unknown OS +#endif + +void foo() +{ +} |