summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresetsPackage/Good-package-package-directory-check.cmake
blob: 8f4b771c5b03fcb850a10215533c650f6e88adfa (plain)
1
2
3
4
5
6
include("${RunCMake_TEST_BINARY_DIR}/default/CPackConfig.cmake")

set(filename "${RunCMake_TEST_BINARY_DIR}/default/package-directory/_CPack_Packages/${CPACK_TOPLEVEL_TAG}/TGZ/${CPACK_PACKAGE_FILE_NAME}.tar.gz")
if(NOT EXISTS "${filename}")
  set(RunCMake_TEST_FAILED "Expected ${filename} to exist but it does not")
endif()