View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014840CMakeCMakepublic2014-03-26 04:092014-03-28 03:48
Reporterth.thielemann 
Assigned ToEric NOULARD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformVMwareOSLinuxOS VersionUbuntu 12.04 LTS
Product VersionCMake 2.8.12.1 
Target VersionFixed in Version 
Summary0014840: install can not handle "~"
DescriptionTried to install into a subfolder of users home on linux. Used the shortcut "~" for this.


Steps To ReproduceNot working:
set("DROP_FOLDER" "~/localdropfolder")
...
install(DIRECTORY ${PROJECT_SOURCE_DIR}/qml DESTINATION "${DROP_FOLDER}" )

But this is working:

set("DROP_FOLDER" "~/localdropfolder")
get_filename_component(QML_PATH_ABSOLUT "${DROP_FOLDER}" ABSOLUTE)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/qml DESTINATION "${QML_PATH_ABSOLUT}" )
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0035516)
Eric NOULARD (developer)
2014-03-26 04:15

AFAIK ~ expansion is the responsibility of the underlying shell
so relying on its expansion is not portable.

Couldn't you use $ENV{HOME} instead ?
(0035546)
th.thielemann (reporter)
2014-03-28 02:56

Oh. I did not thought about that. I will try it. Ticket can be closed.
(0035548)
Eric NOULARD (developer)
2014-03-28 03:48

Closing on reporter request.
using $ENV{HOME} should work.

 Issue History
Date Modified Username Field Change
2014-03-26 04:09 th.thielemann New Issue
2014-03-26 04:15 Eric NOULARD Note Added: 0035516
2014-03-28 02:56 th.thielemann Note Added: 0035546
2014-03-28 03:48 Eric NOULARD Note Added: 0035548
2014-03-28 03:48 Eric NOULARD Status new => closed
2014-03-28 03:48 Eric NOULARD Assigned To => Eric NOULARD
2014-03-28 03:48 Eric NOULARD Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team