View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015665CMakeCPackpublic2015-07-27 08:342016-06-10 14:31
ReporterLectem 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSDebianOS Version
Product VersionCMake 3.2.3 
Target VersionFixed in Version 
Summary0015665: CPack and absolute paths
DescriptionWhen 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

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042812)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-07-27 08:34 Lectem New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042812
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team