Re: [CMake] altering RUN_TESTS post-build command (MSVC + CTest)

2010-09-21 Thread Keith Gunderson
I'll go ahead and answer my own question. >> How do I add a change so that the command for my RUN_TESTS changes ?... In the source file cmGlobalGenerator.cxx for cmake 2.82, at line 1662, you can add the line singleLine.push_back("-VV"); Then recompile and you're all set :) ___

Re: [CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI

2010-09-21 Thread Alexander Neundorf
On Tuesday 21 September 2010, Molsen, Hannes wrote: > [SOLVED] > > Hi all, > > My problem is completely solved and the output is now as follows: > > -- The C compiler identification is Diab > -- The CXX compiler identification is Diab > -- Check for working C compiler: > D:/CCView/tools/tornado/hos

[CMake] Custom command based on build type

2010-09-21 Thread Robert Bielik
Hi all, I need to add a post build event to a VS 2008 project, and only in Release configuration. Some answers on the net suggest CMAKE_BUILD_TYPE, but that doesn't work as the description of CMAKE_BUILD_TYPE suggests. Any other way to accomplish this ? TIA /Rob __

Re: [CMake] Cross compilation from linux to windows using debian cross compilation i586-mingw32msvc-

2010-09-21 Thread Alexander Neundorf
On Tuesday 21 September 2010, Olivier Delannoy wrote: > Hi, > I have a bunch of questions related to cross compilation using CMake. > > I am using CMake for a C project. The build process works very well > for both linux and windows. I am now trying to sort out cross > compilation from linux to wi

Re: [CMake] How to get rid of lib prefix on plugins?

2010-09-21 Thread Michael Jackson
SET_TARGET_PROPERTIES( ${targetName} PROPERTIES SUFFIX ".plugin" ) ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Da

Re: [CMake] pass compile flags to initial compiler test..

2010-09-21 Thread Yngve Inntjore Levinsen
Hi, The output follows below this message. It fails because of the -rdynamic flag I think. In the CMakeLists.txt file I can suppress this with the command "SET(CMAKE_SKIP_RPATH ON)", but this does not seem to have any effect in the toolchain file (?). If I try to manually compile/link without t

[CMake] How to get rid of lib prefix on plugins?

2010-09-21 Thread Kelly Burkhart
I'm trying to create our python plugins with cmake. I've tried python_add_module( pluginname ${SOURCES} ) as well as add_library( pluginname MODULE ${SOURCES} ). The plugin looks to be created properly, but the name is libpluginname.so rather than just pluginname.so. How can I get rid of the imp

Re: [CMake] add_test does not work as documented

2010-09-21 Thread Jesper Eskilson
On 09/21/2010 01:30 PM, David Cole wrote: $ only works with the "add_test(NAME mytest COMMAND MyCommand)" form of the add_test command. But, when you use that form, you have to run "ctest -C Release" or "ctest -C Debug" to choose a configuration when you run the tests. Otherwise, tests added wi

[CMake] HOWTO: Generate Use*.cmake files for installation

2010-09-21 Thread kent williams
I need to do what ITK does -- generate one set of *Config.cmake and Use*.cmake files for the build tree, so it can be used in place, and a second set to be installed when 'make install' is run. Looking through the Insight CMakeLists.txt files I'm not seeing how or where the files intended for the

Re: [CMake] pass compile flags to initial compiler test.. now an assembler issue

2010-09-21 Thread Yngve Inntjore Levinsen
Hi, Again Hannes, thank you for your help! It is very valuable to me and I'm learning even more about how cmake and compiling in general works! :) I added a toolchain file (did not know about this feature before), but it seems that the option "SET(CMAKE_SKIP_RPATH ON)" is ignored in the toolcha

Re: [CMake] add_test does not work as documented

2010-09-21 Thread David Cole
On Tue, Sep 21, 2010 at 4:19 AM, Jesper Eskilson wrote: > Hi, > > I cannot get add_test to work as documented. > > add_test(mytest MyExe) > > correctly runs MyExe. However, if I try to use any of the "generator > expressions" (such as $), it fails: > > add_test(mytest ${SOMEVARIABLE}/$/MyExe) >

Re: [CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI

2010-09-21 Thread Molsen, Hannes
[SOLVED] Hi all, My problem is completely solved and the output is now as follows: -- The C compiler identification is Diab -- The CXX compiler identification is Diab -- Check for working C compiler: D:/CCView/tools/tornado/host/diab/WIN32/bin/dcc.exe -- Check for working C compiler: D:/CCVie

[CMake] R: Re: R: Re: R: Re: CMake CDT generator

2010-09-21 Thread tinau...@libero.it
Hi, I guess this is the piece of information I was missing: indeed, once imported in eclipse I was going to project->build all; instead, if I left-click on the project and selct make target->build, then everything works, and I can modify my source. I'm sorry if this was dumb, but in the wiki of

Re: [CMake] CMake 2.8.3-rc1 ready for testing!

2010-09-21 Thread Emmanuel Christophe
Hi, It would be great if the regression introduced in cmake 2.8.1 for the parallel build could be fixed in 2.8.3 http://public.kitware.com/Bug/view.php?id=11026 The proposed patch looks good. Emmanuel On Thu, Sep 16, 2010 at 00:21, David Cole wrote: > I am happy to announce that CMake 2.8.3 has

[CMake] add_test does not work as documented

2010-09-21 Thread Jesper Eskilson
Hi, I cannot get add_test to work as documented. add_test(mytest MyExe) correctly runs MyExe. However, if I try to use any of the "generator expressions" (such as $), it fails: add_test(mytest ${SOMEVARIABLE}/$/MyExe) fails to locate MyExe correctly, since it isn't expanding $ correctl

[CMake] Cross compilation from linux to windows using debian cross compilation i586-mingw32msvc-

2010-09-21 Thread Olivier Delannoy
Hi, I have a bunch of questions related to cross compilation using CMake. I am using CMake for a C project. The build process works very well for both linux and windows. I am now trying to sort out cross compilation from linux to windows. I gathered information from the CMake wiki and manage to g

Re: [CMake] Compilation with multiple jobs fails

2010-09-21 Thread Steven Bellens
2010/9/20 Alexander Neundorf : > On Monday 20 September 2010, Steven Bellens wrote: >> Hi, >> >> I'm trying to compile a custom library using CMake code. The >> configuration and compilation goes well when I just use 'make'. In >> order to speed things up I tried to compile the library with multipl