Re: [CMake] The else() in CMAKE_TOOLCHAIN_FILE

2013-04-06 Thread Ashi
Yeah, my current approach is exactly creating different toolchain files. Best Regards, ashi On Wed, Apr 3, 2013 at 8:19 PM, Yngve Inntjore Levinsen < yngve.levin...@gmail.com> wrote: > On 03. april 2013 13:13, Johannes Zarl wrote: > > Hi, > > > > On Tuesday, 2. April 2013, 06:42:47, Ashi wrote:

Re: [CMake] The else() in CMAKE_TOOLCHAIN_FILE

2013-04-06 Thread Ashi
Hi, Daniel, I've tried this, but it doesn't work, it returns same error as before. And there are 2 lines in CMakeCache.txt: //No help, variable specified on the command line. A:BOOL=ON Best Regards, ashi On Tue, Apr 2, 2013 at 7:44 PM, Daniel Pfeifer wrote: > http://cmake.org/cmake/help/v2.8.10

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-06 Thread J Decker
I see so the proper full path would be get_property( existing_outname TARGET ${target} PROPERTY OUTPUT_NAME ) if( NOT existing_outname ) set( existing_outname ${target} ) endif( NOT existing_outname ) DESTINATION lib${LIB_SUFFIX}/${CMAKE_{STATIC

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-06 Thread Matthew Woehlke
On 2013-04-04 19:19, J Decker wrote: On Thu, Apr 4, 2013 at 2:25 PM, Matthew Woehlke wrote: On 2013-04-04 17:04, J Decker wrote: Also, you should install to 'lib${LIB_SUFFIX}', not 'lib'. This will allow you (and distros packaging your software) to set LIB_SUFFIX to separate arch-specific comp

Re: [CMake] compiler defines for sub projects

2013-04-06 Thread Olaf Peter
thank you, this is a simply solution, Olaf You can make a variable contain the defines you want and the use that variable in the set_target_properties command. The value of the variable will be inherited by all of the sup directories. option(FOO_OPTION "enable foo" OFF) option(BAR_OPTION "e

Re: [CMake] compiler defines for sub projects

2013-04-06 Thread Keith Gardner
You can make a variable contain the defines you want and the use that variable in the set_target_properties command. The value of the variable will be inherited by all of the sup directories. option(FOO_OPTION "enable foo" OFF) option(BAR_OPTION "enable bar" OFF) if(FOO_OPTION) set(CUS

Re: [CMake] Is it a bug that cmake / cpack could not handle directory name with @?

2013-04-06 Thread hce
Eric Noulard wrote > 2013/4/5 hce < > jupiter.hce@ > > > >> Eric Noulard wrote > > I did open a bug report for that. > > I did try a patch. > Would you try it please? > http://public.kitware.com/Bug/view.php?id=14063 > > And comment on the tracker for the follow-up. > > -- > Erk > Le gouver