Notes |
|
(0040452)
|
Brad King
|
2016-02-09 16:05
|
|
Your command line appears to assume that the last argument is an output directory. It is not (and is not in POSIX tar command lines either). The current working directory of the process is always the output directory unless the tarball contains absolute paths. Paths listed at the end of the command line specify input files for tar creation and are currently ignored for extraction.
Use `cmake -E chdir ... cmake -E tar xf ...` to set the working directory. |
|
|
(0040453)
|
Brad King
|
2016-02-09 16:07
|
|
Normally we've used `cmake -E tar` in an add_custom_command. In that case the working directory will be in the build tree when the command is executed by the generated build system. |
|
|
(0040454)
|
Chuck Atkins
|
2016-02-09 16:25
|
|
|
|
(0040455)
|
Brad King
|
2016-02-09 16:29
|
|
Re 0015962:0040454: [smacks forehead] Yes, that is much better than -E chdir. |
|
|
(0040491)
|
nitroamos
|
2016-02-15 12:57
|
|
I copied the line I used from elsewhere and only checked to see if it was correct by running it (and it worked as expected on OSX). Sorry for the bug report. Adding WORKING_DIRECTORY resolved it.
Thanks!
I don't see a way for me to mark the issue as resolved... |
|
|
(0041253)
|
Kitware Robot
|
2016-06-10 14:21
|
|
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. |
|