summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/LONG_FILENAMES/test.cmake
blob: f6656c6682b7431e5e4f2a4b1cec8daf6ba12e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if(GENERATOR_TYPE STREQUAL "DEB")
  set(CPACK_PACKAGE_CONTACT "someone")
  set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
  set(CPACK_DEBIAN_ARCHIVE_TYPE "gnutar")
endif()

set(LONG_FILENAME
  "${CMAKE_CURRENT_BINARY_DIR}/llllllllll_oooooooooo_nnnnnnnnnn_gggggggggg_ffffffffff_iiiiiiiiii_llllllllll_eeeeeeeeee_nnnnnnnnnn_aaaaaaaaaa_mmmmmmmmmm_eeeeeeeeee.txt")

file(WRITE
  "${LONG_FILENAME}"
  "long_filename_test")

install(FILES ${LONG_FILENAME} DESTINATION foo)