[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pftools: CMAKE_INSTALL_PREFIX resolves *sometimes* to /usr instead of $(CURDIR)/debian/$package/usr



Hi,

I'm working on pftools in git[1].  The package builds and the build time
tests are passing.  However, in the install step the variable
CMAKE_INSTALL_PREFIX in [2] simply seems to resolve to /usr, since I get

...
-- Installing: /build/pftools-3.2.6/debian/pftools/usr/share/examples/all.prf
-- Installing: /build/pftools-3.2.6/debian/pftools/usr/share/examples/score.lis
find: '/usr/share/examples/': No such file or directory
find: '/usr/share/examples/': No such file or directory
find: '/usr/share/examples/': No such file or directory
CMake Error at tests/cmake_install.cmake:62 (FILE):
  FILE RENAME failed to rename

    /usr/share/examples/test_V2.sh.cmake

  to

    /usr/share/examples/test_V2.sh

  because: No such file or directory

Call Stack (most recent call first):
  cmake_install.cmake:58 (include)


make[2]: *** [Makefile:162: install] Error 1
make[2]: Leaving directory '/build/pftools-3.2.6/obj-x86_64-linux-gnu'


At other places the variable seems to resolve properly, thought.

Any idea what might be wrong at this specific line(s) (the next two
lines in this CMakeLists.txt are the same)?

Kind regards

      Andreas.

[1] https://salsa.debian.org/med-team/pftools
[2] https://salsa.debian.org/med-team/pftools/-/blob/master/tests/CMakeLists.txt#L49

-- 
http://fam-tille.de


Reply to: