Files
CMake/Tests/RunCMake/export/FindDependencyExportShared-check.cmake
Kyle Edwards c6e6861e63 install(EXPORT): Export find_dependency() calls
Issue: #20511
Co-Authored-by: Brad King <brad.king@kitware.com>
Co-Authored-by: Robert Maynard <rmaynard@nvidia.com>
2023-11-13 11:07:52 -05:00

5 lines
201 B
CMake

file(READ "${RunCMake_TEST_BINARY_DIR}/mytargets.cmake" mytargets)
if("${mytargets}" MATCHES "find_dependency")
string(APPEND RunCMake_TEST_FAILED "No dependencies should not be exported\n")
endif()