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

2012-11-27 Thread Paolo Ciccone
Yes. I use Sublime Edit 2 for all my work, Xcode is used just to compile
the project. I'll look into that and possibly contact the developer.
Showing the "foreign" chars would have saved me a few hours and avoided
pestering the mailing list about such trivial issue :)

Thanks again.
---
Paolo Ciccone
www.preta3d.com
www.paolociccone.com



On Tue, Nov 27, 2012 at 2:26 PM, Eric Noulard wrote:

> 2012/11/27 Paolo Ciccone :
> > 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!
>
> Happy to ear that.
>
> >
> > Thank you a million.
>
> You're welcome.
>
> May be XCode (or the programming editor you use) should have displayed
> those characters in a different way than "classical space", in fact this
> is how
> I got my eyes on it.
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2012-11-27 Thread Paolo Ciccone
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 wrote:

> 2012/11/27 Paolo Ciccone :
> > 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
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2012-11-27 Thread Paolo Ciccone
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

Hope this helps.

---
Paolo Ciccone
www.preta3d.com
www.paolociccone.com



On Tue, Nov 27, 2012 at 9:41 AM, Eric Noulard wrote:

> 2012/11/27 Paolo Ciccone :
> > Hi Eric.
> >
> >>
> >> Do you mean that inside "CPackConfig.cmake" the value you(ve set before
> >> "INCLUDE(CPack)" are not used?
> >>
> >
> > That is correct.
>
> So this is plain wrong and I don't understand how it is possible??
> We should first find to fix this before examining other issue.
>
> You should definitely find the CPACK_xxx values you(ve set
> in your CMakeLists.txt inside CPackConfig.cmake.
>
> Could you send me/us  a sample minimalistic project
> which exhibit the faulty behavior?
>
> Which version of CMake/CPack are you using?
> Could you transcript the exact command you launch when
> configuring and packaging your project?
>
>
> [...]
>
> --
> Erk
> Le gouvernement représentatif n'est pas la démocratie --
> http://www.le-message.org
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2012-11-27 Thread Paolo Ciccone
Hi Eric.


> Do you mean that inside "CPackConfig.cmake" the value you(ve set before
> "INCLUDE(CPack)" are not used?
>
>
That is correct.


> > Am I overlooking something?
>
> Not something obvious I think.
> Could it be possible that INCLUDE(CPack) has been called by a subproject
> before you actually do it in your main CMakeLists.txt?
>
>
Nope, there is only one CMakeLists.txt file and the CPack text is at the
end of it.


> Which CPack generator are you using?
>

PackageMaker


> Not all of them use CPACK_RESOURCE_* vars.
>
> Could you try from a "fresh" build tree in order to avoid potential
> cache effect.
>

I have deleted the cache and the gemerated CPack files several times
without effect.
BTW, also the CPACK_PACKAGE_VERSION_MAJOR, CPACK_PACKAGE_VERSION_MINOR,
and CPACK_PACKAGE_VERSION_PATCH variables are skipped and those should not
be generator-dependent.

Cheers.

--
Paolo
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2012-11-26 Thread Paolo Ciccone
Hi.

This issue is with CPack 2.8.10.1 on Mac OS.

I have a CPack configuration inside a CMake file that seems to skip some
variables that have been set.
For example:

INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_RESOURCE_FILE_README "Absolute path to the redme file")
SET(CPACK_PACKAGE_VENDOR "Myself")
.
.
.
[OTHER commands and variables]
.
.
.
INCLUDE(CPack)

I have paths specified for
the CPACK_RESOURCE_FILE_README, CPACK_RESOURCE_FILE_WELCOME,
and CPACK_RESOURCE_FILE_LICENSE variables.
When I run CMake the corresponding CPackConfig.cmake file includes all the
path to the readme, welcome and license files are set to the templates
included with CMake. Also, the CPACK_PACKAGE_VENDOR variable is always set
to "Humanity."

Am I overlooking something?

Thanks in advance.
---
Paolo
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Need help with relocatable PackageMaker options in CPack

2011-08-25 Thread Paolo Ciccone
Hello.

Let me first thank the authors of CMake for giving us such powerful
and flexible tool. I'm trying to deliver a plugin that I wrote to both
Mac OS and Windows. I thought of using CPack and it's a mixed bag of
success and failure. I could not find information in the CPack
documentation so here I am to ask your help :)

My plugin has to be installed into the directory tree of the host
application (DAZ Studio). This means to add files/directories into the
DAZStudio3/plugins and DAZStudio3/scripts directories. The user has
the ability to install DAZ Studio in any directory of her choice so I
need to give the ability to select which directory to use for the root
of my installation

Using NCIS everything is fine, my big problem is with the
configuration of PackageMaker. I used the

SET(CPACK_SET_DESTDIR "ON")
SET(CPACK_INSTALL_PREFIX "/Applications/DAZ 3D/DAZStudio3")

commands to make it relocatable and give a default location. The user
can select the root directory but anything else fail. I end up with a
"/Applications/DAZ 3D/DAZStudio3" subdirectory under whatever the user
selected as the root of the installation. So, for example, if the
install root is "/Applications/DAZ 3D/DAZStudio3_32bit" the plugin
gets installed into

/Applications/DAZ 3D/DAZStudio3_32bit/Applications/DAZ 3D/DAZStudio3/plugins

instead of

/Applications/DAZ 3D/DAZStudio3_32bit/plugins

Is there a solution to this?

Thanks in advance.

---
Paolo Ciccone
www.preta3d.com
www.paolociccone.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake