Re: [CMake] Problem with library link order

2015-01-20 Thread J Decker
library link order is exactly as you specify in target_link_libraries... each line following the last of the prior list so reording your library link list should be doable On Tue, Jan 20, 2015 at 9:57 AM, Tom Kacvinsky wrote: > HI, > > I am using cmake 2.8,11.2 on Linux. I am having a probl

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Robert Dailey
On Tue, Jan 20, 2015 at 9:58 AM, Nils Gladitz wrote: > On 01/20/2015 04:48 PM, Robert Dailey wrote: >> >> On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz >> wrote: >>> >>> On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during >>

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Paul Smith
On Tue, 2015-01-20 at 16:02 -0500, Paul Smith wrote: > > I think devenv is used instead of msbuild when the solution has > > fortran projects. > > I certainly don't have any Fortran projects--!! I think I figured it out: on our build servers we don't delete everything and start over from scratch

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Paul Smith
On Tue, 2015-01-20 at 21:57 +0100, Nils Gladitz wrote: > On 20.01.2015 21:40, Paul Smith wrote: > >> Where can I go to find out more about how cmake --build chooses whether > >> to use msbuild vs. devenv? It has to be something more complicated than > >> just the generator used, otherwise all of t

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Nils Gladitz
On 20.01.2015 21:40, Paul Smith wrote: Where can I go to find out more about how cmake --build chooses whether to use msbuild vs. devenv? It has to be something more complicated than just the generator used, otherwise all of these systems would use msbuild. I think devenv is used instead of ms

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Paul Smith
> Am 20. Januar 2015 14:54:26 MEZ, schrieb David Cole via CMake > : > >If you open the "Tools > Options" dialog in Visual Studio, and > >navigate to the "Projects and Solutions > Build and Run" tab, what is > >your "maximum number of parallel project builds" value? > > > >For maximum parallel build

Re: [CMake] Out of Source CMakeLists

2015-01-20 Thread Ma O-Nigiri
Thanks guys - you both hit on my fallback plan. I had a feeling it wouldn't be trivial to get that working without actually adding some functionality to cmake itself. I'll just keep my builds out of tree so I don't interfere with the existing build system! Cheers On Tue, Jan 20, 2015 at 12:00 PM

Re: [CMake] Out of Source CMakeLists

2015-01-20 Thread Gonzalo Garramuno
On 20/01/15 15:57, Ma O-Nigiri wrote: Is this possible? I tried fiddling with some of the path variables and it didn't pan out. I believe what you want is not possible. However, you can have: cmake/modules FindOpenEXR.cmake mytool CMakeLists.txt ( with add_subdirectory( src ) )

Re: [CMake] Out of Source CMakeLists

2015-01-20 Thread Bill Hoffman
On 1/20/2015 1:57 PM, Ma O-Nigiri wrote: I'm porting a makefile based project over to CMake and would like to keep my CMakeLists in a separate set of directories: Why not keep the CMakeLists.txt in the project tree, but never do an in source build? Then the makefiles that cmake creates will nev

[CMake] Out of Source CMakeLists

2015-01-20 Thread Ma O-Nigiri
I'm porting a makefile based project over to CMake and would like to keep my CMakeLists in a separate set of directories: Source Tree (i.e. /myproject) └── src ├── ├── framework │ └── Utilities │ └── a.cpp │ └── a.h └── tests └── a_test.cpp CMakeList

[CMake] Problem with library link order

2015-01-20 Thread Tom Kacvinsky
HI, I am using cmake 2.8,11.2 on Linux. I am having a problem with the order of libraries on the link line. In particular, there are some static archives we build that depend on a third party static archive (one we don't build - it comes with the Ada compiler we are using), yet the tghird part a

Re: [CMake] CPack in CMake 3.1.0 doesn't install files

2015-01-20 Thread Robert Maynard
Hi, I haven't seen this issue but if you have a self-contained and reduced (preferably plain CMake ) test case, I would be happy to run it and verify if this is a regression. On Tue, Jan 20, 2015 at 2:37 AM, NoRulez wrote: > No one? > > Has something changed between 3.0.2 to 3.1.0 which prevents

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Hendrik Sattler
Hi, but msbuild does not use this setting from VS, only devenv does. See option /m HS Am 20. Januar 2015 14:54:26 MEZ, schrieb David Cole via CMake : >If you open the "Tools > Options" dialog in Visual Studio, and >navigate to the "Projects and Solutions > Build and Run" tab, what is >your "ma

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Nils Gladitz
On 01/20/2015 04:48 PM, Robert Dailey wrote: On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz wrote: On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during configuration: /usr/bin/ld: cannot find crtbegin.o: no such file or directory /usr/b

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Robert Dailey
On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz wrote: > On 19.01.2015 21:08, Robert Dailey wrote: >> >> I have done this and it fails while linking the test program during >> configuration: >> >> /usr/bin/ld: cannot find crtbegin.o: no such file or directory >> /usr/bin/ld: cannot find -lgcc >> /us

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Yves Frederix
> If you open the "Tools > Options" dialog in Visual Studio, and > navigate to the "Projects and Solutions > Build and Run" tab, what is > your "maximum number of parallel project builds" value? This is set to 8, which is what I expect as I have 4 cores with hyperthreading (also to windows they sh

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Brad King
On 01/20/2015 07:10 AM, Yves Frederix wrote: >> msbuild ALL_BUILD.vcxproj /p:Configuration=Release >> /p:VisualStudioVersion=12.0 > (shouldn't this have been VisualStudioVersion=11.0?) Yes, but I was testing with VS 2013. > When keeping an eye on the resource monitor, I can also see that, > whi

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread David Cole via CMake
If you open the "Tools > Options" dialog in Visual Studio, and navigate to the "Projects and Solutions > Build and Run" tab, what is your "maximum number of parallel project builds" value? For maximum parallel build capability, it should be set to the same as the number of cores you have. D On

Re: [CMake] List of compile features from command line?

2015-01-20 Thread Robert Maynard
I believe you can use WriteCompilerDetectionHeader to write out a file that will list support. The list of compile features you can request is documented at http://www.cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html On Sat, Jan 17, 2015 at 7:36 PM, Robert Dailey wrote: > Can I us

Re: [CMake] VS2012 builds using v3.1.0 are a lot slower than v2.8.12

2015-01-20 Thread Yves Frederix
>> 3.1.0:10m50s >> 2.8.12: 4m02s >> 3.1.0 (/MP): 6m29s >> 2.8.12 (/MP): 3m48s > > I cannot reproduce that. On my machine for OpenCV (as of commit > 5e92a777) I get about the same time for either version of CMake. > > 3.1.0 : 8m57s > 2.8.12.2 : 8m58s > 3.1.0(/MP): 4m52s >

[CMake] ExternalData_Add_Test get referenced files

2015-01-20 Thread Lars Bilke
Dear CMake-user, I am using the ExternalData-module to create CTest tests which require data files managed by ExternalData. I successfully used the DATA{}-syntax. Now I need (at a later point in CMake) the referenced files for each test. Is it possible to retrieve this information? Is it stored