MantisBT - CMake
View Issue Details
0015665CMakeCPackpublic2015-07-27 08:342016-06-10 14:31
Lectem 
Kitware Robot 
normalminoralways
closedmoved 
Debian
CMake 3.2.3 
 
0015665: CPack and absolute paths
When running make package (or cpack), with a target having an absolute path as its destination, it will try to install it there instead of using the temporary folder.

When using this script :

   add_library(mylib foo.cpp)
   install(TARGETS mylib DESTINATION /some/custom/dir)
   include(CPack)

cpack will install mylib to /some/custom/dir which is obviously not what we want.

Plus, generators such as TGZ will not include those files, while they actually support absolute paths.

What I suggest is

1. Do not make the install, or redirect it in a temp directory
2. Trigger a Warning/Error

No tags attached.
Issue History
2015-07-27 08:34LectemNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042812
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042812)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.