Hi Eric.<div>You nailed it! Those characters got inserted when I copies and pasted the names of the variables fromt the CPack wiki. Once removed everything works perfectly. Fantastic!</div><div><br></div><div>Thank you a million.<br clear="all">
---<br>Paolo Ciccone<br><a href="http://www.preta3d.com" target="_blank">www.preta3d.com</a><br><a href="http://www.paolociccone.com" target="_blank">www.paolociccone.com</a><br><br>
<br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 1:34 PM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com" target="_blank">eric.noulard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/11/27 Paolo Ciccone <<a href="mailto:phciccone@gmail.com">phciccone@gmail.com</a>>:<br>
<div class="im">> I have prepared a testcase that I can use to replicate the issue all the<br>
> time.<br>
> I am running Mac OS 10.8.2 (ML) and I tested this case with both CMake/CPack<br>
> 2.8.10.1 and 2.8.9.<br>
><br>
> The command issued is simply:<br>
><br>
> cmake -G Xcode<br>
><br>
> You can find the test case, which is stripped down to almost nothing here:<br>
><br>
> <a href="https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip" target="_blank">https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip</a><br>
<br>
</div>If you open your CMakeLists.txt in an hexadecimal editor you'll see<br>
that you have spurious C2 A0 UTF-8 characters (unbreakable space) at the end of<br>
the following variables:<br>
CPACK_PACKAGE_VENDOR<br>
CPACK_PACKAGE_VERSION_MAJOR<br>
CPACK_PACKAGE_VERSION_MINOR<br>
CPACK_PACKAGE_VERSION_PATCH<br>
CPACK_PACKAGE_DESCRIPTION_SUMMARY<br>
CPACK_RESOURCE_FILE_WELCOME<br>
CPACK_RESOURCE_FILE_README<br>
CPACK_RESOURCE_FILE_LICENSE<br>
<br>
so statement like<br>
<br>
set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf")<br>
<br>
may be puzzling CMake because the extraneous "unbreakable space" may not be<br>
considered as a separator.<br>
<br>
On linux it seems to work but the behavior on the Mac may be different.<br>
Could you try replacing your CMakeLists.txt with the one attached to this mail<br>
and retry.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Erk<br>
Le gouvernement représentatif n'est pas la démocratie --<br>
<a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</div></div></blockquote></div><br></div>