diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-08-15 19:01:31 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-08-24 20:29:33 (GMT) |
commit | 67f60958b61941264b0e2a63ad527dd346a6b1e3 (patch) | |
tree | dd2f5a4674007430db4185610fc81ffd335861a2 /Tests/RunCMake/XcodeProject/RunCMakeTest.cmake | |
parent | ddb7f280ce4e7a76dc66c53e933df9e11ee35e20 (diff) | |
download | CMake-67f60958b61941264b0e2a63ad527dd346a6b1e3.zip CMake-67f60958b61941264b0e2a63ad527dd346a6b1e3.tar.gz CMake-67f60958b61941264b0e2a63ad527dd346a6b1e3.tar.bz2 |
Darwin: Add support for tbd library stub files
Starting with Xcode 7 the OSX and iOS SDKs contain only stub
files for dynamic system libraries. These stub files contain
some meta data and a list of exported sysbols in plain text.
They are handled by the toolchain like regular dylibs.
Diffstat (limited to 'Tests/RunCMake/XcodeProject/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/XcodeProject/RunCMakeTest.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake index ef81739..1151abf 100644 --- a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake +++ b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake @@ -39,3 +39,9 @@ if(NOT XCODE_VERSION VERSION_LESS 5) unset(RunCMake_TEST_NO_CLEAN) unset(RunCMake_TEST_OPTIONS) endif() + +if(NOT XCODE_VERSION VERSION_LESS 7) + set(RunCMake_TEST_OPTIONS "-DCMAKE_TOOLCHAIN_FILE=${RunCMake_SOURCE_DIR}/osx.cmake") + run_cmake(XcodeTbdStub) + unset(RunCMake_TEST_OPTIONS) +endif() |