#1051180 checkinstall: cmake 'No such file or directory' while using with checkinstall

Package:
checkinstall
Source:
checkinstall
Description:
installation tracker
Submitter:
Date:
2023-09-04 02:51:04 UTC
Severity:
normal
#1051180#5
Date:
2023-09-04 02:48:01 UTC
From:
To:
Dear Maintainer,

When using cmake build with checkinstall I see 'No such file or directory' error,
even when file and folder actually exists.

git clone https://github.com/dpayne/cli-visualizer
cd cli-visualizer
mkdir build
cd build
cmake ..
make
checkinstall

  file INSTALL cannot copy file
  "/media/axet/128GB/local/cli-visualizer/build/vis" to "/usr/local/bin/vis":
  No such file or directory

If I run 'checkinstall ./123.sh' and copy this file using 'cp' command it works and deb fill will be created.