summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-20 12:09:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-04-20 12:09:57 (GMT)
commita0a861b27f0a59f849d3d9e653310ce11f3036be (patch)
tree6414725134f9548af21c35847c2237cd8a18febe /Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake
parentab61ee1b5b277a17d8fcf319e5cffd75a17c9192 (diff)
parent95ead383754f86f8f794eafbd436b6faf508559b (diff)
downloadCMake-a0a861b27f0a59f849d3d9e653310ce11f3036be.zip
CMake-a0a861b27f0a59f849d3d9e653310ce11f3036be.tar.gz
CMake-a0a861b27f0a59f849d3d9e653310ce11f3036be.tar.bz2
Merge topic 'FindPkgConfig-frameworks'
95ead38375 FindPkgConfig: fix handling of frameworks b7304f35b3 Tests: simplify FindPkgConfig_CMAKE_{FRAMEWORK,APPBUNDLE}_PATH tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3814
Diffstat (limited to 'Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake')
-rw-r--r--Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake b/Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake
new file mode 100644
index 0000000..fde886d
--- /dev/null
+++ b/Tests/RunCMake/FindPkgConfig/FindPkgConfig_extract_frameworks.cmake
@@ -0,0 +1,13 @@
+find_package(PkgConfig)
+
+set(foobar_LDFLAGS_OTHER "-Wl,xy;-framework;bar;-Wl,other-framework;-framework;baz;-Wl,abc;-framework;gosh;-frameworkcrap;-frame;j;-framework;nix;-Wl,def")
+set(foobar_LIBRARIES "-lz;-lm")
+
+_pkgconfig_extract_frameworks("foobar")
+
+if (NOT foobar_LDFLAGS_OTHER STREQUAL "-Wl,xy;-Wl,other-framework;-Wl,abc;-frameworkcrap;-frame;j;-Wl,def")
+ message(SEND_ERROR "foobar_LDFLAGS_OTHER did not match: ${foobar_LDFLAGS_OTHER}")
+endif ()
+if (NOT foobar_LIBRARIES STREQUAL "-lz;-lm;-framework bar;-framework baz;-framework gosh;-framework nix")
+ message(SEND_ERROR "foobar_LIBRARIES did not match: ${foobar_LIBRARIES}")
+endif ()