mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 07:11:52 +08:00

Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
22 lines
542 B
C++
22 lines
542 B
C++
#include <CoreFoundation/CoreFoundation.h>
|
|
#include <stdio.h>
|
|
|
|
extern int foo(char* exec);
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
printf("Started with: %d arguments\n", argc);
|
|
|
|
// Call a CoreFoundation function... but pull in the link dependency on
|
|
// "-framework
|
|
// CoreFoundation" via CMake's dependency chaining mechanism. This code
|
|
// exists to
|
|
// verify that the chaining mechanism works with "-framework blah" style
|
|
// link dependencies.
|
|
//
|
|
CFBundleRef br = CFBundleGetMainBundle();
|
|
(void)br;
|
|
|
|
return foo(argv[0]);
|
|
}
|