Re: [CMake] print a message during a specific build target

2015-12-04 Thread Christopher Sean Morrison
Thanks, that worked for printing a message during our “check” target. Makes sense for “if (TARGET…)” to truthfully enter if that target name exists. What threw me off, I think, was having "TARGET test” not actually pass and misunderstanding the docs that this would embed logic in the generato

[CMake] MPI wrappers vs FindMPI

2015-12-04 Thread Zaak Beekman
>From working on a Homebrew formula < https://github.com/Homebrew/homebrew/pull/46547> for OpenCoarrays < https://github.com/sourceryinstitute/opencoarrays> I'm under the impression that common practice is to use FindMPI over passing mpicc and mpif90 to cmake directly. Is this correct, and the way

[CMake] Fwd: Installing on MSYS2 and Windows 10

2015-12-04 Thread Antonio de Angelis
Hello, I'm trying to build the source package for cmocka 1.0.1 ( https://cmocka.org/files/1.0/cmocka-1.0.0.tar.xz) on MSYS2 and Windows 10, but when running cmake I get: C:\cmocka\cmocka-1.0.1\build>cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release System is unknown to cmake, create

Re: [CMake] CMAKE_CXX_STANDARD does not get used in PERFORM_CMAKE_TEST

2015-12-04 Thread Brad King
On 12/04/2015 02:14 PM, Johnson, Hans J wrote: > PERFORM_CMAKE_TEST(vxl_platform_tests.cxx VCL_STATIC_CONST_INIT_FLOAT) > NOTE: THIS FAILS WHEN IT SHOULD PASS! [snip] > Should I simply add -DCMAKE_CXX_STANDARD:STRING=${CMAKE_CXX_STANDARD} > to the TRY_COMPILE? The seems too simplistic. I think th

[CMake] Shared library from sources in several subdirectories

2015-12-04 Thread Bruce Stephens
Any suggestions on how to organise that? Presumably there are lots of examples in (for example) KDE, but I'm not familiar enough with that codebase to be able to find them easily. Currently our GNU Make build builds static libraries in the subdirectories, then those are put into a big static libra

Re: [CMake] Best way to handle application data path for local run vs. installation

2015-12-04 Thread Dmitry Marakasov
* Dmitry Marakasov (amdmi3@hades.panopticon) wrote: > Anyway for now, I did some research and solved the problem of inplace > vs. systemwide compilation in a way that I find acceptable. > > I check for CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT to basically > know whether a user has explicitly s