[CMake] CPACK: configured variables in CMake file are ignored

Paolo Ciccone phciccone at gmail.com
Tue Nov 27 17:20:00 EST 2012


Hi Eric.
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!

Thank you a million.
---
Paolo Ciccone
www.preta3d.com
www.paolociccone.com



On Tue, Nov 27, 2012 at 1:34 PM, Eric Noulard <eric.noulard at gmail.com>wrote:

> 2012/11/27 Paolo Ciccone <phciccone at gmail.com>:
> > I have prepared a testcase that I can use to replicate the issue all the
> > time.
> > I am running Mac OS 10.8.2 (ML) and I tested this case with both
> CMake/CPack
> > 2.8.10.1 and 2.8.9.
> >
> > The command issued is simply:
> >
> > cmake -G Xcode
> >
> > You can find the test case, which is stripped down to almost nothing
> here:
> >
> > https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip
>
> If you open your CMakeLists.txt in an hexadecimal editor you'll see
> that you have spurious C2 A0 UTF-8 characters (unbreakable space) at the
> end of
> the following variables:
> CPACK_PACKAGE_VENDOR
> CPACK_PACKAGE_VERSION_MAJOR
> CPACK_PACKAGE_VERSION_MINOR
> CPACK_PACKAGE_VERSION_PATCH
> CPACK_PACKAGE_DESCRIPTION_SUMMARY
> CPACK_RESOURCE_FILE_WELCOME
> CPACK_RESOURCE_FILE_README
> CPACK_RESOURCE_FILE_LICENSE
>
> so statement  like
>
> set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf")
>
> may be puzzling CMake because the extraneous "unbreakable space" may not be
> considered as a separator.
>
> On linux it seems to work but the behavior on the Mac may be different.
> Could you try replacing your CMakeLists.txt with the one attached to this
> mail
> and retry.
>
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121127/9876e2e6/attachment.htm>


More information about the CMake mailing list