diff options
author | Brad King <brad.king@kitware.com> | 2021-03-11 13:10:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-11 13:10:42 (GMT) |
commit | 460608274280e64e8791ba8cee62fbdcef4d59d9 (patch) | |
tree | f01a61a7db3037a00a26244abccdf139bcaf765a /Tests | |
parent | f59a3e2148e5177933f7cf98a35d9955fffdb173 (diff) | |
parent | 4f9a71974e0d6e34c81fd8f55fce4118157e5559 (diff) | |
download | CMake-460608274280e64e8791ba8cee62fbdcef4d59d9.zip CMake-460608274280e64e8791ba8cee62fbdcef4d59d9.tar.gz CMake-460608274280e64e8791ba8cee62fbdcef4d59d9.tar.bz2 |
Merge topic 'xcode-framework-quoting' into release-3.20
4f9a71974e Xcode: Restore support for spaces in framework names
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5899
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Framework/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/Framework/space.c | 7 | ||||
-rw-r--r-- | Tests/Framework/use_space.c | 8 |
3 files changed, 25 insertions, 0 deletions
diff --git a/Tests/Framework/CMakeLists.txt b/Tests/Framework/CMakeLists.txt index f741ec2..aabf6b4 100644 --- a/Tests/Framework/CMakeLists.txt +++ b/Tests/Framework/CMakeLists.txt @@ -83,6 +83,16 @@ if(NOT XCODE OR NOT XCODE_VERSION VERSION_LESS 5) target_link_libraries(barStatic fooStatic) endif() +if(XCODE) + add_library(space SHARED space.c) + set_target_properties(space PROPERTIES + FRAMEWORK TRUE + OUTPUT_NAME "space space" + ) + add_executable(use_space use_space.c) + target_link_libraries(use_space PRIVATE space) +endif() + include(CPack) if(APPLE) diff --git a/Tests/Framework/space.c b/Tests/Framework/space.c new file mode 100644 index 0000000..bf5b0c3 --- /dev/null +++ b/Tests/Framework/space.c @@ -0,0 +1,7 @@ +#ifdef _WIN32 +__declspec(dllexport) +#endif + int space(void) +{ + return 0; +} diff --git a/Tests/Framework/use_space.c b/Tests/Framework/use_space.c new file mode 100644 index 0000000..bb4893d --- /dev/null +++ b/Tests/Framework/use_space.c @@ -0,0 +1,8 @@ +#ifdef _WIN32 +__declspec(dllimport) +#endif + int space(void); +int main(void) +{ + return space(); +} |