Re: [CMake] How to determine the compiler used outside of cmake

2013-05-03 Thread Chuck Atkins
Instead of overriding the compiler in the CMakeLists.txt to a specific compiler version, why not guide CMake's compiler detection from the outside and have CMake "choose" the one you want? For instance, since you're already using a wrapper to drive the CMAKe build, you could call cmake with "cmake

[CMake] undefined reference to symbol 'keypad'

2013-05-03 Thread Matteo Parsani
Dear All, I am trying to compile cmake 2.8.10 on a computer with the following operating system: /opt/centos/devtoolset-1.1/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: cou

[CMake] include(InstallRequiredSystemLibraries) not working with NSIS

2013-05-03 Thread charles_west
Hello, I'm kinda new. I've written a Qt program in Linux Mint, ported it over to windows with Mingw32, got building working with CMake in Linux and windows, and integrated CPack to create a .deb installer. The debian package has nice automatic package resolution, but I am having trouble getting

Re: [CMake] "cmake --build ." and colors

2013-05-03 Thread Gregoire Aujay
Hello, I also found that using cmake --build . with ninja outputs all lines but if I directly use ninja to build it only outputs one line which is very cool (it clears current line before printing the new one if there is no warning/error). Regards, Gregoire From: cmake-boun...@cmake.org [mailt

Re: [CMake] turning inverting dashboard interpretation of FATAL_ERRORs at cmake

2013-05-03 Thread Matthias Kretz
On Thursday 25 April 2013 20:09:09 Alexander Neundorf wrote: > On Thursday 25 April 2013, Matthias Kretz wrote: > > On Thursday 25 April 2013 09:46:03 Bill Hoffman wrote: > > > On 4/25/2013 9:15 AM, Matthias Kretz wrote: > > > > I have several checks in my project that make cmake error out with > >

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Clinton Stimpson
On Friday, May 03, 2013 05:48:20 PM Stephen Kelly wrote: > clin...@elemtech.com wrote: > >> Or > >> > >> Release/foo.framework/foo > >> Debug/foo.framework/foo-d > > > > Ok, but the framework version of the linker flags -L,-l are used like > > this: -F/path/to/framework -framework foo > > which

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
clin...@elemtech.com wrote: >> Or >> >> Release/foo.framework/foo >> Debug/foo.framework/foo-d > > Ok, but the framework version of the linker flags -L,-l are used like > this: -F/path/to/framework -framework foo > which result in the linker would look for this file > /path/to/framework/foo.fra

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > clin...@elemtech.com wrote: > > > > > > > - Original Message - > >> clin...@elemtech.com wrote: > >> > >> > > >> > > >> > - Original Message - > >> >> Stephen Kelly wrote: > >> >> > >> >> > Is it possible to build multi-config frameworks with

[CMake] "cmake --build ." and colors

2013-05-03 Thread Gregoire Aujay
Hello, I am wondering if there is any trick to enable colors when running this command: cmake --build . The only way I manage to get the colors is to directly use the make program, e.g.: mingw32-make all The issue is that I am trying to use a script that runs cmake to build instead of the mak

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
clin...@elemtech.com wrote: > > > - Original Message - >> clin...@elemtech.com wrote: >> >> > >> > >> > - Original Message - >> >> Stephen Kelly wrote: >> >> >> >> > Is it possible to build multi-config frameworks with cmake at all? >> >> >> >> I also notice that the Framewo

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > > > - Original Message - > > clin...@elemtech.com wrote: > > > > > > > > > > > - Original Message - > > >> Stephen Kelly wrote: > > >> > > >> > Is it possible to build multi-config frameworks with cmake at all? > > >> > > >> I also notice that

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > clin...@elemtech.com wrote: > > > > > > > - Original Message - > >> Stephen Kelly wrote: > >> > >> > Is it possible to build multi-config frameworks with cmake at all? > >> > >> I also notice that the Framework unit test uses > >> > >> set_target_prop

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
clin...@elemtech.com wrote: > > > - Original Message - >> Stephen Kelly wrote: >> >> > Is it possible to build multi-config frameworks with cmake at all? >> >> I also notice that the Framework unit test uses >> >> set_target_properties(foo PROPERTIES >>FRAMEWORK TRUE >>DEBUG_

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread clinton
- Original Message - > Stephen Kelly wrote: > > > Is it possible to build multi-config frameworks with cmake at all? > > I also notice that the Framework unit test uses > > set_target_properties(foo PROPERTIES >FRAMEWORK TRUE >DEBUG_POSTFIX -d > ) > > but the debug file is c

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Stephen Kelly wrote: > Is it possible to build multi-config frameworks with cmake at all? I also notice that the Framework unit test uses set_target_properties(foo PROPERTIES FRAMEWORK TRUE DEBUG_POSTFIX -d ) but the debug file is called 'foo', not 'foo-d'. If I use cmake --build .

Re: [CMake] CMake installation problems

2013-05-03 Thread Eric Noulard
2013/5/3 Prasun Sarkar : > Hello > > I am trying to install CMake (version 2.6.4) prior to the installation > of Geant4 in my system (Scientific linux cern 5.3). As I give the > command > > cmake -DCMAKE_INSTALL_PREFIX=/home/geant4/geant4.9.5-install > /home/geant4/geant4.9.5/cmake-2.6.4 Why would

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Stephen Kelly wrote: > or --config Release to build a particular configuration. However, the > debug and release names are the same. I also ran cmake with > > -DCMAKE_DEBUG_POSTFIX=Debug > > but that didn't make any difference. This makes a difference for non-frameworks, but does not make a dif

[CMake] CMake installation problems

2013-05-03 Thread Prasun Sarkar
Hello I am trying to install CMake (version 2.6.4) prior to the installation of Geant4 in my system (Scientific linux cern 5.3). As I give the command cmake -DCMAKE_INSTALL_PREFIX=/home/geant4/geant4.9.5-install /home/geant4/geant4.9.5/cmake-2.6.4 it is showing $ Curses libraries were not foun

[CMake] Recursive object libraries

2013-05-03 Thread Jonathan Anderson
Thanks very much for adding add_library(OBJECT); it's Just the Thing™ for organising source files that go into large libraries. It seems that I can't use it recursively, however: "Only executables and non-OBJECT libraries may reference target objects." I'd like to use the same mechanism to organi

Re: [CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Stephen Kelly wrote: > and I wanted to see what cmake exports when it export() is used with a > framework target. I created a shared library and ran cmake with -GXcode, > then cmake --build ., but it seems to only create a release library. I > thought Xcode generated rules for multiple configuratio

[CMake] Building multiple configurations with Xcode?

2013-05-03 Thread Stephen Kelly
Hi, I am investigating https://bugreports.qt-project.org/browse/QTBUG-30938 and I wanted to see what cmake exports when it export() is used with a framework target. I created a shared library and ran cmake with -GXcode, then cmake --build ., but it seems to only create a release library. I