Notes |
|
(0028474)
|
Eric NOULARD
|
2012-02-05 07:25
|
|
|
|
(0028475)
|
Eric NOULARD
|
2012-02-05 07:26
|
|
For CMake dev:
I have just pushed a possible
fix to stage/CPackNSIS-fixIgnore-INCLUDE_TOPLEVEL:
To git@cmake.org:stage/cmake.git
* [new branch] HEAD -> CPackNSIS-fixIgnore-INCLUDE_TOPLEVEL
The fix is simple.
Avoid LOG_ERROR in this case and use LOG_WARNING in order to avoid
final failure.
I did test it in a cross-compiling env. but I let you decide
if it's ok to merge. My doubt about that fix was whether if
forcing CPACK_INCLUDE_TOPLEVEL_DIRECTORY would leak to next
generator if a serie of them was used.
It looks like we create a new cmMakefile for each CPack generator
so this is safe. Nevertheless I let you review it, before merging
to next. |
|
|
(0028478)
|
Hong Xu
|
2012-02-05 09:14
|
|
Hi Eric,
I think that zip, tarball generators may need CPACK_INCLUDE_TOPLEVEL_DIRECTORY set to 1.
I'll try CPASCK_PROJECT_CONFIG_FILE. Thanks! |
|
|
(0028479)
|
Eric NOULARD
|
2012-02-05 09:25
|
|
Hi Hong,
zip and tarball are CPack Archive Generator
family (they all rely on libarchive).
The archive generator family do set
"CPACK_INCLUDE_TOPLEVEL_DIRECTORY" internally
if the user did not set it, so that you don't need
to set it to 1.
With you current usage I think you may just
don't set CPACK_INCLUDE_TOPLEVEL_DIRECTORY
to any value
(just remove any
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY ...)
line)
in your CMakeLists.txt and you'll get what you need.
If not then you'd better use CPACK_PROJECT_CONFIG_FILE. |
|
|
(0028480)
|
Hong Xu
|
2012-02-05 09:36
|
|
Thanks! I removed this variable and the previous problem disappears. However, a new problem came. The output is:
CPack Error: Problem creating temporary directory: D:/Users/xxx/Documents/src/editorconfig/build/_CPack_Packag
es/Windows-x86/NSIS/editorconfig-0.2.0-Windows-x86/C:/Program Files/editorconfig
CPack Error: Error when generating package: editorconfig
NMAKE : fatal error U1077: 'echo' : return code '0x1'
This should be different from this issue. I'll take a look at this and if I should, I'll open a new issue. |
|
|
(0028481)
|
Hong Xu
|
2012-02-05 09:39
|
|
|
|
(0028482)
|
Eric NOULARD
|
2012-02-05 09:58
|
|
You should NOT
set(CPACK_SET_DESTDIR "ON")
unless you really know what you are doing.
In any case this won't work for NSIS,
and may be not at all on Windows.
Concerning the documentation of CPack variables,
we are working on it, see 0010067 |
|
|
(0028483)
|
Hong Xu
|
2012-02-05 11:20
|
|
OK, I understand. Thanks very much. |
|
|
(0028532)
|
Eric NOULARD
|
2012-02-08 18:43
|
|
Initial problem solved by better usage from the user.
And initial error is now a warning with this:
Merge topic 'CPackNSIS-fixIgnore-INCLUDE_TOPLEVEL' into next
6a74eb1 CPackNSIS fix 0012935 switch from LOG_WARNING to avoid final error. |
|
|
(0029968)
|
David Cole
|
2012-07-09 06:52
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|