diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-13 13:01:09 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-17 13:07:10 (GMT) |
commit | 2201fb6f4369911f2260deb41dc70ac5c9c905d6 (patch) | |
tree | 00d9b9b480f0d0abf4fe9cec7bbad162622728e6 | |
parent | 5a7a006fddfe0cbf00004dfb7352b9b83dca9d58 (diff) | |
download | CMake-2201fb6f4369911f2260deb41dc70ac5c9c905d6.zip CMake-2201fb6f4369911f2260deb41dc70ac5c9c905d6.tar.gz CMake-2201fb6f4369911f2260deb41dc70ac5c9c905d6.tar.bz2 |
Tests: Add test for InstallRequiredSystemLibraries
3 files changed, 12 insertions, 0 deletions
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) |