how to get the temporary install directory used by CPackDeb ?

Hi all

I need to run a command with install(CODE “…”) when generating my .deb with make package.
For this command I need to know the path of the temporary install made by cpack.
It seems to be in _CPack_Packages/Linux/DEB/ but is there a variable to read it ?
I though CMAKE_INSTALL_PREFIX would be modified (with \ before ${CMAKE_INSTALL_PREFIX }) but with or without CPACK_SET_DESTDIR on the variable is always the finale destination folder (/opt/something).

Is there a way inside install(CODE “…”) to get the temporary cpack install folder ?

Thanks

$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}

1 Like