summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcFramework/find-library.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/XcFramework/find-library.cmake')
-rw-r--r--Tests/RunCMake/XcFramework/find-library.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcFramework/find-library.cmake b/Tests/RunCMake/XcFramework/find-library.cmake
new file mode 100644
index 0000000..c5fe8db
--- /dev/null
+++ b/Tests/RunCMake/XcFramework/find-library.cmake
@@ -0,0 +1,5 @@
+find_library(MYLIB_XCFRAMEWORK mylib NO_DEFAULT_PATH PATHS "${CMAKE_BINARY_DIR}/../create-xcframework-framework-build")
+file(REAL_PATH "${CMAKE_BINARY_DIR}/../create-xcframework-framework-build/mylib.xcframework" expected_path)
+if(NOT MYLIB_XCFRAMEWORK STREQUAL expected_path)
+ message(FATAL_ERROR "Expected value of MYLIB_XCFRAMEWORK:\n ${expected_path}\nActual value:\n ${MYLIB_XCFRAMEWORK}")
+endif()