Re: [CMake] Cross compile to platform with two stage compiler.

2014-07-02 Thread Eric LaFranchi
Yes. The cross compiler is run on Windows and we are setup to use either Windows Command Prompt or Cygwin shell. What arguments will be passed into the script that is set using the CMAKE_FORCE_C_COMPIELR macro? I assume this is going to be "compiler flags", "source file", and "target file"? The

Re: [CMake] Cross compile to platform with two stage compiler.

2014-07-02 Thread Nils Gladitz
On 02.07.2014 18:53, Eric LaFranchi wrote: Currently we have 16 different platform that we target that are a combination of native compiles and cross compiles. I am adding a new platform to our build system using CMake's cross compiling facility. This platform is unique in that compiling a ".

[CMake] Cross compile to platform with two stage compiler.

2014-07-02 Thread Eric LaFranchi
Currently we have 16 different platform that we target that are a combination of native compiles and cross compiles. I am adding a new platform to our build system using CMake's cross compiling facility. This platform is unique in that compiling a ".c" file to get an ".o" file required two steps

Re: [CMake] Drag & Drop mac installer

2014-07-02 Thread Nils Gladitz
On 02.07.2014 13:18, Guillermo Sotomayor wrote: I'm generating a drag and drop installer. I'm trying to add a custom background image and a custom DS_Store file unsuccesfuly. set (CPACK_DMG_FORMAT UDBZ) set (CPACK_DMG_BACKGROUND_IMAGE ${PROJECT_SOURCE_DIR}/macInstallerFiles/background.png) set

[CMake] Drag & Drop mac installer

2014-07-02 Thread Guillermo Sotomayor
I'm generating a drag and drop installer. I'm trying to add a custom background image and a custom DS_Store file unsuccesfuly. set (CPACK_DMG_FORMAT UDBZ) set (CPACK_DMG_BACKGROUND_IMAGE ${PROJECT_SOURCE_DIR}/macInstallerFiles/background.png) set (CPACK_CPACK_DMG_DS_STORE ${PROJECT_SOURCE_DIR}/mac

Re: [CMake] Getting the svn revision number of our source.

2014-07-02 Thread Rolf Eike Beer
Am 02.07.2014 01:04, schrieb Rick McGuire: We like to include the SVN revision number in our build artifacts to help keep track of what version people are working with. I found the following code on the mailing lists which appears to work fine: # Get the SVN revision number of an svn command

Re: [CMake] Getting the svn revision number of our source.

2014-07-02 Thread Marcel Loose
Hi, The command SET(ENV{LC_ALL} C) somewhere inside your cmake macro will do the trick. If you really care about the original contents of LC_ALL you should save it first and restore once your done. BTW: you might consider using the Subversion_WC_INFO() macro in the FindSubversion module. C

Re: [CMake] Getting the svn revision number of our source.

2014-07-02 Thread Eric Noulard
May be you can avoid localized output by setting LANG env var to "C". Or you can ask svn for xml output which may not be localized e.g. # Get the SVN revision number of an svn command line client is # available. This version will run at build time rather than only # at configuration generation