[CMake] How can I link to my MinSizeRel project in msvc

2009-11-09 Thread Meng Zhang
Dear CMakers, I am a beginner of CMake. My problem is that in MSVC, I have two projects: one is executable project A, and the other is library project B. A depends on B and A has to link B. I want A to link the corresponding B separately under different configurations. For example, if I build Rel

Re: [CMake] Problem with CTest SUBDIRS

2009-11-09 Thread Johannes Stallkamp
Tyler Roscoe schrieb: > On Mon, Nov 09, 2009 at 07:18:05PM +0100, Johannes Stallkamp wrote: > >> Are there any reasons the suggested patch in >> http://public.kitware.com/Bug/view.php?id=9090 is not integrated into >> current CMake version? >> > > Looks like Zach Mullen just applied the pat

Re: [CMake] Multiple PROJECT() statements

2009-11-09 Thread Alan W. Irwin
On 2009-11-09 12:52-0800 Phil Smith wrote: I'm working with a CMakeLists.txt file I didn't create, so this may be a dumb question, but that won't stop me from asking it! We're using a System z cross-compiler called Dignus. I have it all working, but when we merged back into the SVN trunk, the

Re: [CMake] Creating a new platform configuration

2009-11-09 Thread Alexander Neundorf
On Monday 09 November 2009, Ingolf Steinbach wrote: > Hi, > > I am trying to create cmake configuration files for an embedded > target. From the cmake documentation I did not yet find answers to the > following questions: > > 1. What are the minimum settings required in a platform file? > 2. What s

[CMake] Multiple PROJECT() statements

2009-11-09 Thread Phil Smith
I'm working with a CMakeLists.txt file I didn't create, so this may be a dumb question, but that won't stop me from asking it! We're using a System z cross-compiler called Dignus. I have it all working, but when we merged back into the SVN trunk, the PROJECT() statement became an issue. CMake i

[CMake] Creating a new platform configuration

2009-11-09 Thread Ingolf Steinbach
Hi, I am trying to create cmake configuration files for an embedded target. From the cmake documentation I did not yet find answers to the following questions: 1. What are the minimum settings required in a platform file? 2. What should the partitioning between platform and toolchain file look li

Re: [CMake] CVS tag/branch question

2009-11-09 Thread Eric Noulard
2009/11/9 Steven Wilson : > > On Mon, Nov 9, 2009 at 11:36 AM, Eric Noulard > wrote: >> >> 2009/11/9 Steven Wilson : >> > What CVS tag is used for the 2.8.0 release? >> >> I guess it **WILL** be something like >>  CMake-2-8-0 >> >> >  I see a CMake-2-8 branch, but >> > when building from that bran

Re: [CMake] CVS tag/branch question

2009-11-09 Thread Bill Hoffman
Steven Wilson wrote: On Mon, Nov 9, 2009 at 11:36 AM, Eric Noulard > wrote: 2009/11/9 Steven Wilson mailto:steven.wesley.wil...@gmail.com>>: > What CVS tag is used for the 2.8.0 release? I guess it **WILL** be something like CMake-2-8-0

Re: [CMake] CVS tag/branch question

2009-11-09 Thread Steven Wilson
On Mon, Nov 9, 2009 at 11:36 AM, Eric Noulard wrote: > 2009/11/9 Steven Wilson : > > What CVS tag is used for the 2.8.0 release? > > I guess it **WILL** be something like > CMake-2-8-0 > > > I see a CMake-2-8 branch, but > > when building from that branch the cmake --version still reports "cmake

Re: [CMake] Issue using CPackRPM with rpmbuild 4.7.1 and a small patch

2009-11-09 Thread Eric Noulard
2009/11/9 : >> >> OK can you open a new bug for CPackRPM and attach your patch proposal to >> it? >> >> If yes then reply to this message in order to give us the bug number. >> >> -- > > Bug # is 9872 > > I looked at the other CPackRPM issues before submitting the > patch--unfortunately 9872 is de

Re: [CMake] Problem with CTest SUBDIRS

2009-11-09 Thread Tyler Roscoe
On Mon, Nov 09, 2009 at 07:18:05PM +0100, Johannes Stallkamp wrote: > Are there any reasons the suggested patch in > http://public.kitware.com/Bug/view.php?id=9090 is not integrated into > current CMake version? Looks like Zach Mullen just applied the patch. Hopefully that means this fix will be s

Re: [CMake] Issue using CPackRPM with rpmbuild 4.7.1 and a small patch

2009-11-09 Thread forrest
> 2009/11/9 : >> Thank you very much for CMake--I love it. >> >> I need to build RPMs using CPack.  This worked using rpmbuild 4.4.2.1 >> and >> the latest CVS version of CMake. >> >> But when I installed rpmbuild 4.7.1 I found that, prior to the %install >> phase, rpmbuild clears your entire buil

Re: [CMake] packaging configuration files

2009-11-09 Thread James C. Sutherland
On Nov 9, 2009, at 12:00 PM, Brad King wrote: James C. Sutherland wrote: However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. Good, it is much more modern and more powerful. However, it is not clear to me how to incorporate d

Re: [CMake] Issue using CPackRPM with rpmbuild 4.7.1 and a small patch

2009-11-09 Thread Eric Noulard
2009/11/9 : > Thank you very much for CMake--I love it. > > I need to build RPMs using CPack.  This worked using rpmbuild 4.4.2.1 and > the latest CVS version of CMake. > > But when I installed rpmbuild 4.7.1 I found that, prior to the %install > phase, rpmbuild clears your entire buildroot direct

Re: [CMake] packaging configuration files

2009-11-09 Thread Brad King
James C. Sutherland wrote: However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. Good, it is much more modern and more powerful. However, it is not clear to me how to incorporate dependencies when using the install(EXPORT) approa

[CMake] Issue using CPackRPM with rpmbuild 4.7.1 and a small patch

2009-11-09 Thread forrest
Thank you very much for CMake--I love it. I need to build RPMs using CPack. This worked using rpmbuild 4.4.2.1 and the latest CVS version of CMake. But when I installed rpmbuild 4.7.1 I found that, prior to the %install phase, rpmbuild clears your entire buildroot directory. This is problemati

Re: [CMake] CVS tag/branch question

2009-11-09 Thread Eric Noulard
2009/11/9 Steven Wilson : > What CVS tag is used for the 2.8.0 release? I guess it **WILL** be something like CMake-2-8-0 >  I see a CMake-2-8 branch, but > when building from that branch the cmake --version still reports "cmake > version 2.8.0-rc5" Then I guess 2.8.0 is not out... yet :-) Sti

[CMake] Problem with CTest SUBDIRS

2009-11-09 Thread Johannes Stallkamp
Hello, sorry for asking this right after the release of CMake 2.8, but I only stumpled upon the problem right now (using 2.6, however). Are there any plans to fix http://public.kitware.com/Bug/view.php?id=9090 (still marked as "open")? We actually do have the same situation that we add "subdirect

[CMake] CMake Error: RPATH_CHANGE

2009-11-09 Thread Marcel Loose
Hi all, I encountered the following problem when trying to 'make install' a statically linked executable on a ppc64 platform. CMake Error at cmake_install.cmake:47 (FILE): file RPATH_CHANGE could not write new RPATH: /tmp/loose/cmake/cmake-rpath/install/lib to the file: /tmp/loose

[CMake] CVS tag/branch question

2009-11-09 Thread Steven Wilson
What CVS tag is used for the 2.8.0 release? I see a CMake-2-8 branch, but when building from that branch the cmake --version still reports "cmake version 2.8.0-rc5" Thanks, Steve ___ Powered by www.kitware.com Visit other Kitware open-source projects

Re: [CMake] 2.6.4: how to avoid -fPIC when cross compiling for an embedded target

2009-11-09 Thread Ingolf Steinbach
2009/11/6 Alexander Neundorf : > Can you check whether that's still the case with the current 2.8.0 RC ? It is still in there when using cmake-2.8.0-rc2-Linux-i386. Kind regards Ingolf ___ Powered by www.kitware.com Visit other Kitware open-source proj

Re: [CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Michael Wild
set(... PARENT_SCOPE) Michael On 9. Nov, 2009, at 11:11 , Olivier Pierard wrote: Hi, I'm facing another rather simple problem. I try to modify a variable defined in the main CMakeLists.txt within another one called by the add_subdirectory command. Modification is well taken into account in

[CMake] Exposing .o files

2009-11-09 Thread jens persson
Hello I'm converting a big internal buildsystem over to cmake and need to expose some .o files after the build[1]. I have looked around on the web but not found a definitive answer for a way to do this, I'm contemplating two ways of doing it: * as a post_build command I create links in the filesy

Re: [CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Marcel Loose
Hi Oliver, Use the option PARENT_SCOPE when setting the variable. HTH, Marcel Loose. On Mon, 2009-11-09 at 11:11 +0100, Olivier Pierard wrote: > Hi, > > I'm facing another rather simple problem. > > I try to modify a variable defined in the main CMakeLists.txt within > another one called by th

[CMake] Modification of a variable in a CMakeLists called with add_subdirectory

2009-11-09 Thread Olivier Pierard
Hi, I'm facing another rather simple problem. I try to modify a variable defined in the main CMakeLists.txt within another one called by the add_subdirectory command. Modification is well taken into account in the subfolder but once back in the main one, variable is set back to its previous valu

Re: [CMake] scripting ctest

2009-11-09 Thread th . tom
Hi David, thanks for the clarification. I set ${PROJECT_NAME} and ${SOURCE_DIR} to the appropriate name, but it changes from script to script (there is one script for every packet I create, so I only showed the code, that is used by all projects.) I am actually not working full time on this j