From 2201fb6f4369911f2260deb41dc70ac5c9c905d6 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 13 Jul 2018 09:01:09 -0400 Subject: Tests: Add test for InstallRequiredSystemLibraries --- .../RunCMake/install/InstallRequiredSystemLibraries-stderr.txt | 1 + Tests/RunCMake/install/InstallRequiredSystemLibraries.cmake | 10 ++++++++++ Tests/RunCMake/install/RunCMakeTest.cmake | 1 + 3 files changed, 12 insertions(+) create mode 100644 Tests/RunCMake/install/InstallRequiredSystemLibraries-stderr.txt create mode 100644 Tests/RunCMake/install/InstallRequiredSystemLibraries.cmake diff --git a/Tests/RunCMake/install/InstallRequiredSystemLibraries-stderr.txt b/Tests/RunCMake/install/InstallRequiredSystemLibraries-stderr.txt new file mode 100644 index 0000000..8d98f9d --- /dev/null +++ b/Tests/RunCMake/install/InstallRequiredSystemLibraries-stderr.txt @@ -0,0 +1 @@ +.* diff --git a/Tests/RunCMake/install/InstallRequiredSystemLibraries.cmake b/Tests/RunCMake/install/InstallRequiredSystemLibraries.cmake new file mode 100644 index 0000000..27ff683 --- /dev/null +++ b/Tests/RunCMake/install/InstallRequiredSystemLibraries.cmake @@ -0,0 +1,10 @@ +enable_language(C) +set(CMAKE_INSTALL_MFC_LIBRARIES 1) +set(CMAKE_INSTALL_DEBUG_LIBRARIES 1) +set(CMAKE_INSTALL_UCRT_LIBRARIES 1) +set(CMAKE_INSTALL_OPENMP_LIBRARIES 1) +include(InstallRequiredSystemLibraries) + +# FIXME: This test emits warnings because InstallRequiredSystemLibraries +# doesn't currently work properly. The warnings have been suppressed in +# InstallRequiredSystemLibraries-stderr.txt. This needs to be fixed. diff --git a/Tests/RunCMake/install/RunCMakeTest.cmake b/Tests/RunCMake/install/RunCMakeTest.cmake index 6b5a251..2999951 100644 --- a/Tests/RunCMake/install/RunCMakeTest.cmake +++ b/Tests/RunCMake/install/RunCMakeTest.cmake @@ -89,6 +89,7 @@ run_install_test(DIRECTORY-PATTERN) run_install_test(TARGETS-Parts) run_install_test(FILES-PERMISSIONS) run_install_test(TARGETS-RPATH) +run_install_test(InstallRequiredSystemLibraries) set(run_install_test_components 1) run_install_test(FILES-EXCLUDE_FROM_ALL) -- cgit v0.12