summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/lib_bundle
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-08-31 09:50:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-31 13:52:38 (GMT)
commitf5a441a616c03739962b52fd8dd0deb48cc9083b (patch)
treef676e58b32305fe41125eb90614c0d1bcd5a2832 /Tests/RunCMake/XcodeProject/lib_bundle
parent9b4efcb92fc200d20b1ff3027cf819232db7060c (diff)
downloadCMake-f5a441a616c03739962b52fd8dd0deb48cc9083b.zip
CMake-f5a441a616c03739962b52fd8dd0deb48cc9083b.tar.gz
CMake-f5a441a616c03739962b52fd8dd0deb48cc9083b.tar.bz2
Xcode: Fix erroneous MACOSX_BUNDLE link
Refactoring in commit a2cfa2da4f (GenEx/LINK_LIBRARY: Add features for framework support on Apple, 2022-02-10, v3.24.0-rc1~661^2) accidentally removed a `GetParentDirectory` call. Restore it. Fixes: #23891
Diffstat (limited to 'Tests/RunCMake/XcodeProject/lib_bundle')
-rw-r--r--Tests/RunCMake/XcodeProject/lib_bundle/CMakeLIsts.txt5
-rw-r--r--Tests/RunCMake/XcodeProject/lib_bundle/lib_bundle.cpp6
2 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/lib_bundle/CMakeLIsts.txt b/Tests/RunCMake/XcodeProject/lib_bundle/CMakeLIsts.txt
new file mode 100644
index 0000000..7a50ce8
--- /dev/null
+++ b/Tests/RunCMake/XcodeProject/lib_bundle/CMakeLIsts.txt
@@ -0,0 +1,5 @@
+
+add_library(LibBundle lib_bundle.cpp)
+
+set_target_properties(LibBundle PROPERTIES
+ MACOSX_BUNDLE YES)
diff --git a/Tests/RunCMake/XcodeProject/lib_bundle/lib_bundle.cpp b/Tests/RunCMake/XcodeProject/lib_bundle/lib_bundle.cpp
new file mode 100644
index 0000000..9f74584
--- /dev/null
+++ b/Tests/RunCMake/XcodeProject/lib_bundle/lib_bundle.cpp
@@ -0,0 +1,6 @@
+#include <iostream>
+
+void foo()
+{
+ std::cout << "foobar" << std::endl;
+}