Re: [CMake] CTest question

2017-05-17 Thread Eric Noulard
We lack information on how your test are failing. If they all timeout then may be you should setup a proper timeout for the test. The actual execution speed of a test may depend on the load of your machine or the network (depending on what the test are actually doing). This may be even more

[Cmake-commits] CMake branch, master, updated. v3.8.1-1206-gd1233a3

2017-05-17 Thread Kitware Robot
_VERSION_MINOR 8) -set(CMake_VERSION_PATCH 20170517) +set(CMake_VERSION_PATCH 20170518) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

Re: [CMake] RPATH for external library

2017-05-17 Thread Pawel Veselov
On Wed, May 17, 2017 at 2:55 AM, Patrick Boettcher > My reason of preferring pkg-config is because it may have all >> other kind of stuff in it that the maintainer thought is necessary. >> I'd imagine some .pc files export a boatload of flags for all 3 >> stages, and I

[CMake] ctest test run order

2017-05-17 Thread Juan E. Sanchez
I remember that the longest tests used to run first. Now they seem to run in a random order on Windows, Mac, Linux. Is this the expected behavior? How can I get longest test first? Regards, Juan -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Link order and interface multiplicity

2017-05-17 Thread Robert Maynard
No you would set the properties on ExeA and ExeB and that would effect the target_link_library generation for the interface library I I have written an example that drops the Foo libraries as they aren't needed to show my example.

Re: [CMake] Force target to always run last?

2017-05-17 Thread David Cole via CMake
The way I know how to do this is to add it last at the bottom of the top-level CMakeLists.txt file, and then use add_dependencies to make it depend on all other targets. (Or at least all other "leaf" targets, which further depend on others, ... the sum of which is "all other targets" besides the

Re: [CMake] Link order and interface multiplicity

2017-05-17 Thread Etan Kissling
Not sure if I understand that correctly, but isn't that essential the same as creating a FooA and BarA that link to IA, and a FooB and BarB that link to IB, and linking ExeA to FooA and ExeB to FooB? Problem with this approach is that there are more than two implementations of I, and way more

[CMake] CTest question

2017-05-17 Thread T.Sariyski
Hi, I wonder what is the reason that sometimes ctest ends with numerous ‘Failed’ and ‘Timeout’, which ‘ctest –rerun-failed’ reports ‘Passed’. At times the number of these false failures is about one third. I guess that the problem is in the way I set my tests, but I have no clue where to

[Cmake-commits] CMake branch, master, updated. v3.8.1-1205-g2e6cbd9

2017-05-17 Thread Kitware Robot
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 2e6cbd987119f74fe3454213a73ef049bd1b0926 (commit) via

Re: [CMake] Link order and interface multiplicity

2017-05-17 Thread Robert Maynard
I have a feeling that you could do this with generator expressions. You would have the interface link line for I have a generator expression that switches between IA and IB. Than you would setup ExeA and ExeB to trigger this switch. Maybe using something like $? On Wed, May 17, 2017 at 8:28 AM,

[CMake] Force target to always run last?

2017-05-17 Thread Robert Dailey
I have a custom target that must meet the following requirements: * It must always run, regardless of what subset of other targets are being built * It must always be the very last thing run. In parallelized builds, it must wait until all other targets are done building before starting, so that

Re: [CMake] How to detect MSVC 2015 update 3 (= presence of /fpermissive-)

2017-05-17 Thread René J . V . Bertin
Volker Enderlein wrote: Hi, Thanks, that helps. With there is maybe something to learn from the CMake sources, too. R. > Hello, > > according to https://sourceforge.net/p/predef/wiki/Compilers/ you could > check with > > check_cxx_source_compiles(" > #if defined (_MSC_VER) && (_MSC_VER

Re: [CMake] Link order and interface multiplicity

2017-05-17 Thread Etan Kissling
Hi, and thanks for the quick reaction :-) The approach with forward declaration looks interesting. However, I don't think that it will resolve all the problems. One issue is that there are multiple apps, each using separate implementations. • ExeA uses the generic libraries Foo and Bar, as well

Re: [CMake] How to detect MSVC 2015 update 3 (= presence of /fpermissive-)

2017-05-17 Thread Volker Enderlein
Hello, according to https://sourceforge.net/p/predef/wiki/Compilers/ you could check with check_cxx_source_compiles(" #if defined (_MSC_VER) && (_MSC_VER == 1900) && (_MSC_FULL_VER == 190024210) #else #error compiler is not MSVC Update3 #endif int main() {

Re: [CMake] RPATH for external library

2017-05-17 Thread Patrick Boettcher
On Tue, 16 May 2017 12:32:11 -0700 Pawel Veselov wrote: > > I was once in a situation where I could have used pkg-config with a > > custom path to have pkg-config look for the .pc-file. I then > > switched to find_library with the custom-path slightly adapted and > > it

Re: [CMake] How to detect MSVC 2015 update 3 (= presence of /fpermissive-)

2017-05-17 Thread René J . V . Bertin
René J.V. Bertin wrote: Bump. No one who can help here? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please