Re: [CMake] Tweaking/disabling timeout for "Check for working CXX compiler"

2015-09-09 Thread Dmitry Marakasov
* Michael Enright (michael.enri...@gmail.com) wrote: > > Relevant excerpt: > > > > --- > > > > > > Process terminated due to timeout > > > > > > > > The question is obvious: where is this timeout defined, what value > > is it set to exactly and is it tunable? > > > > When you build manually i

Re: [CMake] Tweaking/disabling timeout for "Check for working CXX compiler"

2015-09-09 Thread Michael Enright
On Tue, Sep 8, 2015 at 7:57 PM, Dmitry Marakasov wrote: > > Hi! > > FreeBSD project use userspace qemu emulation to cross-build packages > for some architectures, namely arm. This worked great for most > packages, however ones using cmake tend to fail randomly. > Relevant excerpt: > > --- > >

Re: [CMake] CMake + MPI

2015-09-09 Thread Tim Gallagher
That's good to know -- it looks like that capability was added 3 months after we wrote our CMakeLists.txt and we had to skip the find_package if we used a cray. That was 2011 and we never looked back at it because it worked. I guess I can go ahead and update that! Tim - Original Message

Re: [CMake] CMake + MPI

2015-09-09 Thread Chuck Atkins
> > The only exception to that (which I am aware of) is if you are on a CRAY > system where the MPI (and BLAS and LAPACK) are baked into the compiler > wrappers (cc, ftn, etc). In those situations, you actually do not want to > run find_package(MPI) or it will throw errors. > Not true. The FindMP

Re: [CMake] Missing -lgfortran with FortranCInterface verify calls

2015-09-09 Thread Daniel Wirtz
Hey all, sorry for the late reply but that indeed fixes the issue! thanks Brad. On 28.08.2015 17:15, Brad King wrote: On 08/27/2015 03:24 AM, Daniel Wirtz wrote: CMake 3.3.0. [snip] after checking, the @CMakeFiles/VerifyFortranC.dir/linklibs.rsp does not contain the "-lgfortran" library inc

Re: [CMake] Fwd: Expected behaviour for Tests/VSWinStorePhone

2015-09-09 Thread Parag Chandra
Hi Pierre, For the ARM version, I believe you will need to specify the CPU architecture explicitly, because CMake is not going to generate a “fat”/multi-arch solution in the manner that it does for Xcode. What I do for WinPhone is to pass arguments like this: -DCMAKE_SYSTEM_NAME=WindowsPhone -

[CMake] Shared library from ExternalProject

2015-09-09 Thread Tino Mettler
Hi, I'm thinking about a solution to use separate projects as source archives and include it into the main cmake build. I looks like ExternalProject_Add() can handle this. However, there seems to be no standard way to use shared C/C++ libraries in an external project. Is there a basic example how

[CMake] Object targets and link libraries

2015-09-09 Thread Daniel Wirtz
Hey all, i've been wondering why CMake (3.3.+) yells at me if i want to add link libraries to an OBJECT target. Consider the scenario find_package(package_with_bar_target) add_library(foo OBJECT ${foo_src}) # Would like to write # target_link_libraries(foo bar) # But have to use target_in

[CMake] Fwd: Expected behaviour for Tests/VSWinStorePhone

2015-09-09 Thread Pierre Wilmot
Hi everyone, I’m trying to generate a Windows Phone 8.1 project from CMake, I was expecting the Tests/VSWinStorePhone folder to be a good template to start with, but I’m a bit confused with the result I get. I was expecting to get pretty much the same result as a project created with the Vis