Re: [cmake-developers] target_include_directories branch in stage

2012-01-09 Thread Stephen Kelly
David Cole wrote: How can this feature now be moved forward? Do I need to convince someone to volunteer to port the other generators? Should I just file a bug for porting the other generators and wait (possibly making the feature bitrot)? I volunteer to make sure this branch works with

Re: [cmake-developers] CheckSymbolExists is unreliable

2012-01-09 Thread Brad King
On 1/7/2012 6:12 AM, Rolf Eike Beer wrote: This has changed. It fails now for vs11-x64 on amber10 and for Linux64- bullseye-cov on hythloth. amber10 seems to have an unrelated, general problem. What's wrong with the bullseye I have no idea, but this goes wrong for the C++ test and some others,

Re: [cmake-developers] CheckSymbolExists is unreliable

2012-01-09 Thread Brad King
On 1/9/2012 9:19 AM, Rolf Eike Beer wrote: What about just putting using std; before the main? Does that help? I assume you mean using namespace std; Yes, it works. That will also take care of the normal cerrno case. Thanks, -Brad -- Powered by www.kitware.com Visit other Kitware

[cmake-developers] [CMake 0012865]: CPack generated archives don't have correct permissions when cross compiling on windows

2012-01-09 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12865 == Reported By:muhkuh Assigned To:

[cmake-developers] [CMake 0012866]: find_library, find_path et al should check (user provided) path

2012-01-09 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12866 == Reported By:manday Assigned To:

[cmake-developers] [CMake 0012867]: bzip2 library not found in debug on windows

2012-01-09 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12867 == Reported By:Patrick Spendrin Assigned To:

[cmake-developers] [CMake 0012868]: FindZeroCIce.cmake

2012-01-09 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12868 == Reported By:Alexey Ozeritsky Assigned To:

[CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Stürmer
I have found some topics related to my issue on the web, but none so far helped me to fix it: I use Visual Studio 2010 on Windows 7 64Bit. During my build, all binaries are collected in one folder, which makes it easier for me to debug the project. But to be able to run the program actually,

Re: [CMake] Some issues with visual studio

2012-01-09 Thread Michael Stürmer
-- Message: 2 Date: Sun, 8 Jan 2012 21:52:05 -0700 From: James Bigler jamesbig...@gmail.com Subject: Re: [CMake] Some issues with visual studio To: Renato Utsch renatout...@gmail.com Cc: cmake@cmake.org Message-ID:

[CMake] Changing PROJECT level build settings in Xcode

2012-01-09 Thread Daniel Dekkers
Hi, In Xcode, can I change build settings at PROJECT level via CMake? SET_TARGET_PROPERTIES() always seems to work on TARGETS level. Thanks, Daniel Dekkers -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] Changing PROJECT level build settings in Xcode

2012-01-09 Thread Eric Noulard
2012/1/9 Daniel Dekkers d.dekk...@cthrough.nl: Hi, In Xcode, can I change build settings at PROJECT level via CMake? SET_TARGET_PROPERTIES() always seems to work on TARGETS level. What kind of settings? Properties have a scope: - global - directories - target - tests -

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread David Cole
On Sun, Jan 8, 2012 at 11:59 PM, Óscar Fuentes o...@wanadoo.es wrote: When MSBuild.exe is used (typically by cmake --build) for building a VS2010 project generated by cmake, it correctly invokes cmake for regenerating the project files if changes to the CMakeLists.txt files are detected.

Re: [CMake] Changing PROJECT level build settings in Xcode

2012-01-09 Thread David Cole
On Mon, Jan 9, 2012 at 6:49 AM, Eric Noulard eric.noul...@gmail.com wrote: 2012/1/9 Daniel Dekkers d.dekk...@cthrough.nl: Hi, In Xcode, can I change build settings at PROJECT level via CMake? SET_TARGET_PROPERTIES() always seems to work on TARGETS level. What kind of settings? Properties

[CMake] making the build fail

2012-01-09 Thread Tom Deblauwe
Hello list, Is there a way when doing a coverage build and test run(with bullseye) to make the build fail when the total coverage percentage is below a certain treshold? for example getting the resulting percentage in your ctest script after the ctest_coverage() call. Best regards Tom, --

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Michael Hertling
On 01/09/2012 02:34 PM, David Cole wrote: On Sun, Jan 8, 2012 at 11:59 PM, Óscar Fuentes o...@wanadoo.es wrote: When MSBuild.exe is used (typically by cmake --build) for building a VS2010 project generated by cmake, it correctly invokes cmake for regenerating the project files if changes to

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Hauke Heibel
Hi Michael, What I do is running a custom command which itself executes a CMake script. Usually similar to add_custom_command(TARGET CopyDlls COMMAND ${CMAKE_COMMAND} -DMSVC_BUILD_CONFIG_DIR=${CMAKE_CFG_INTDIR} -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Stürmer
Hello Hauke, thanks for the answer! I already got some workaround which is very similar to your suggestion: as I have this problem only in windows/msvc mode I use a batch-script now which takes the $CONFIGURATION variable as an argument. Within the bat-script I check the content of

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread John Drescher
2012/1/9 Hauke Heibel hauke.hei...@googlemail.com: Hi Michael, What I do is running a custom command which itself executes a CMake script. Usually similar to add_custom_command(TARGET CopyDlls  COMMAND ${CMAKE_COMMAND}        -DMSVC_BUILD_CONFIG_DIR=${CMAKE_CFG_INTDIR}        

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Jackson
I was going to chime in with my own macro: # #-- Copy all the Qt4 dependent DLLs into the current build directory so that #-- one can debug an application or library that depends on Qt4 libraries. macro

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Hauke Heibel
On Mon, Jan 9, 2012 at 4:11 PM, Michael Jackson mike.jack...@bluequartz.net wrote: The only issue I really have with this is that this macro requires there to be BOTH debug and Release libraries available and will copy BOTH no matter which configuration is being built. I am thinking that the

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Hertling
On 01/09/2012 10:05 AM, Michael Stürmer wrote: I have found some topics related to my issue on the web, but none so far helped me to fix it: I use Visual Studio 2010 on Windows 7 64Bit. During my build, all binaries are collected in one folder, which makes it easier for me to debug

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Julien Malik
Hi, Did you try FixupBundle from the BundleUtilities module ? I use it on windows, at install time, to copy all the dll required by an executable, just next to the executable. Very usefull to generate a standalone installer. The good thing is that it introspects your executable (via the

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread David Cole
2012/1/9 Michael Stürmer m.stuer...@pmdtec.com: I have found some topics related to my issue on the web, but none so far helped me to fix it: I use Visual Studio 2010 on Windows 7 64Bit. During my build, all binaries are collected in one folder, which makes it easier for me to debug the

Re: [CMake] making the build fail

2012-01-09 Thread David Cole
Not directly... Not with existing ctest. But after the ctest_coverage call, there should be a file in your binary tree called something like Testing/20120109-0100/Coverage.xml -- it is the xml file that will be submitted to CDash reporting what files have what percent coverage. Near the bottom

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Stürmer
Awesome! Sometimes you just need to know what's already available to solve your problems in a very elegant way. I'll have a look at these bundles and probably switch to them instead of maintaining my own stuff! -Ursprüngliche Nachricht- Von: David Cole [mailto:david.c...@kitware.com]

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread John Drescher
Awesome! Sometimes you just need to know what's already available to solve your problems in a very elegant way. I'll have a look at these bundles and probably switch to them instead of maintaining my own stuff! Same here. I have spent a few hours writing scripts that keep a list of

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Hauke Heibel
2012/1/9 Michael Stürmer m.stuer...@pmdtec.com: Awesome! Sometimes you just need to know what's already available to solve your problems in a very elegant way. I'll have a look at these bundles and probably switch to them instead of maintaining my own stuff! When looking at the initial

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread David Cole
2012/1/9 Hauke Heibel hauke.hei...@googlemail.com: 2012/1/9 Michael Stürmer m.stuer...@pmdtec.com: Awesome! Sometimes you just need to know what's already available to solve your problems in a very elegant way. I'll have a look at these bundles and probably switch to them instead of

[CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Michael Jackson
I am having an issue with my project compiling against the Official Nokia Qt4 downloaded from Nokia. The issue (I think) is that for some reason when FindQt4 is running it determines that QT_USE_FRAMEWORKS is false and so I don't get all of the proper include directories. Namely the

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Óscar Fuentes
Michael Hertling mhertl...@online.de writes: On 01/09/2012 02:34 PM, David Cole wrote: No trick, but to avoid this, perhaps we should change the --build handler to run the cmake configure generate step before calling out to MSBuild. You can easily do this yourself from the command line by

Re: [CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Clinton Stimpson
On Monday, January 09, 2012 11:26:15 am Michael Jackson wrote: I am having an issue with my project compiling against the Official Nokia Qt4 downloaded from Nokia. The issue (I think) is that for some reason when FindQt4 is running it determines that QT_USE_FRAMEWORKS is false and so I don't

Re: [CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Michael Jackson
We tried with CMake 2.8.7 and had the same results. I installed on my own machine and was able to compile successfully so it must be something add with their setup. I guess. Thanks for the sanity check. -- Mike Jackson www.bluequartz.net On Jan 9, 2012, at 2:10 PM, Clinton Stimpson wrote: On

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread John Drescher
On Mon, Jan 9, 2012 at 1:56 PM, Óscar Fuentes o...@wanadoo.es wrote: Michael Hertling mhertl...@online.de writes: On 01/09/2012 02:34 PM, David Cole wrote: No trick, but to avoid this, perhaps we should change the --build handler to run the cmake configure generate step before calling out

Re: [CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Michael Jackson
Some more info. When running cmake I get the following output when looking for Qt4: cmake 2.8.7 -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for

[CMake] linking mixed language executable; cmake choosing wrong compiler

2012-01-09 Thread Mitchell, John A
Hi, I am trying to link a fortran/c++ executable. main() is in the fortran file. cmake is choosing to Link CXX executable rather than fortran executable? Based upon my current CMakeLists.txt file, cmake is choosing the wrong linker. I can in fact cut and paste the cmake link line and

Re: [CMake] linking mixed language executable; cmake choosing wrong compiler

2012-01-09 Thread Brad King
On 1/9/2012 3:44 PM, Mitchell, John A wrote: add_executable(demo_cf_pointer demo_cf_pointer.F90) target_link_libraries(demo_cf_pointer I_Fortran -lstdc++) CMake prefers to use the C++ compiler to link when any C++ is involved. Some toolchains use a prelinker step that actually runs the C++

Re: [CMake] [EXTERNAL] Re: linking mixed language executable; cmake choosing wrong compiler

2012-01-09 Thread Mitchell, John A
Thanks Brad. Much appreciated. I can see that cmake has some relevant properties but I wasn't quite sure how to set them. I'll give this a shot. From: Brad King [brad.k...@kitware.com] Sent: Monday, January 09, 2012 2:28 PM To: Mitchell, John A Cc:

Re: [CMake] Are u using mingw32 gcc / with Cmake?

2012-01-09 Thread Alan W. Irwin
On 2012-01-07 18:16+0100 Bram Kouwenberg wrote: I'm looking for someone with a mingw32 install next to Cmake. I have a problem compiling probably because of mingw32 --look below if you want. shout out if you have mingw32 Hi Bram: From time to time on a MinGW/MSYS/Wine platform, I have

[CMake] User configuration files for Visual Studio

2012-01-09 Thread Robert Dailey
there are .user files generated by newer versions of Visual Studio (since 2005 I believe) that contain per-machine or per-workspace information. For all intents and purposes these are temporary files that are not checked into version control. The normal file naming convention for these are:

Re: [CMake] MSBuild and automatic project file regenation

2012-01-09 Thread Michael Hertling
On 01/09/2012 07:56 PM, Óscar Fuentes wrote: Michael Hertling mhertl...@online.de writes: On 01/09/2012 02:34 PM, David Cole wrote: No trick, but to avoid this, perhaps we should change the --build handler to run the cmake configure generate step before calling out to MSBuild. You can

Re: [CMake] CMake + Ninja

2012-01-09 Thread Peter Collingbourne
On Fri, Jan 06, 2012 at 02:08:24PM -0500, Clifford Yapp wrote: Peter, FYI, I'm seeing a problem with the BRL-CAD build on the Mac with CMake + ninja using the latest git versions - when I try to run tclsh, I get a problem with it trying to link TARGET_INSTALLNAME_DIRlibtcl.8.5.dylib instead

Re: [CMake] CMake + Ninja

2012-01-09 Thread Stephen Kelly
Hi, I didn't time it, but I was able to use ninja with kdelibs and grantlee (my smaller Qt project). Clifford Yapp wrote: In case anybody else wants to give ninja a spin, here's what I did to test it (using bash as a shell): git clone git://github.com/martine/ninja.git git clone -b

[Cmake-commits] CMake branch, next, updated. v2.8.7-2000-g696a596

2012-01-09 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 696a596929b2f053683e16dbbc4a79a54b46947e (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2002-g1022a07

2012-01-09 Thread Bill Hoffman
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 1022a07cad8158db71a0f15cd9b446b21be96cfd (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2004-gc45aed1

2012-01-09 Thread Rolf Eike Beer
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via c45aed1e8255086163aef6c1c773e1588e350397 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-13-gd4fe0d0

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via d4fe0d0304ef20506c3c864319e6e8e5a13db276 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-15-gef58573

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via ef58573bb39c719cf04f4645f78eba06e769e8ac (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-19-g4fa5a7c

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 4fa5a7c845305cc23e184f1cc644af27475bcf04 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-28-gbe358c6

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via be358c68c351ff6913fa11e2af96b7f6741cde1a (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-30-g7bfc71b

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 7bfc71b70bf76ed8350ca778941b6db6e8d31940 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-36-g3323c73

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 3323c73381c1d0e287fffafe82b4b356ff7aea5f (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-38-g354b3d4

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 354b3d40d0fa1ff125b235aef43f4512b352f409 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-40-g04b6f00

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 04b6f00bcf86a265be605db8ac4976266e486940 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-86-g4828b7b

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 4828b7ba30dc3216a40f43b2e0b072f190dc76d8 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.7-88-g95b701b

2012-01-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 95b701b82ad218a26e12b3410970c861bcd80d10 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2032-gf4ff859

2012-01-09 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via f4ff8598071cf7a38480dbeac433d79b1b292637 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2036-g26cfacf

2012-01-09 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 26cfacf8f152ebc498269907b4783260003752ff (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.7-2038-g8e4e44f

2012-01-09 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 8e4e44feefab80489465d83e22bd2cafeada9d65 (commit) via