Re: [CMake] New Visual Studio project types

2017-04-15 Thread Robert Bielik
Ideally, I would like to: 1. Develop in Visual Studio 2. Cross-compile on the Windows Linux subsystem 3. Run/debug the code on a Raspberry Pi Maybe too much to ask for 😝 Regards /R > -Original Message- > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Robert > Bielik > Sent: de

[CMake] New Visual Studio project types

2017-04-15 Thread Robert Bielik
Hi all, With the "new" Cross-platform project types in VS2015+ (https://blogs.msdn.microsoft.com/vcblog/2016/03/30/visual-c-for-linux-development/), it's almost ridiculously easy and fun to develop X-platform on f.i. the raspberry pi. I have a CMake based console app which I'd like to use with

[CMake] CXX_STANDARD use latest

2017-04-15 Thread Tiago Macarios
Hi, One can require a specific CXX_STANDARD to be used, but is it possible to set a minimum and let CMake use the latest as long as it satisfies the minimum? Example code: set_property(TARGET a_lib PROPERTY CXX_STANDARD_MIN 11 PROPERTY CXX_STANDARD_REQUIRED ON PROPERTY CXX_STANDARD_L

[CMake] Setting properties to interface

2017-04-15 Thread Tiago Macarios
Hi, Given a template-only library exposed throw an interface is it possible to set the necessary CXX_STANDARD necessary to use the library? The code below would be what I am trying to do. add_library(a_lib INTERFACE) set_property(TARGET a_lib PROPERTY CXX_STANDARD 11 PROPERTY CXX_STANDAR

[CMake] Configuration retrieval for external tools

2017-04-15 Thread Olzhas Rakhimov
Hello, I need an advice how to get 'project configurations' from CMake for another tool to use (cppdep in particular). The issue is described there: https://github.com/rakhimov/cppdep/issues/17 The information needed for analysis: 1. The directory of 'intern

Re: [CMake] CMAKE_SIZEOF_VOID_P question

2017-04-15 Thread Ghislain Vaillant
> Next question is then why doesn't GNUInstallDirs set > CMAKE_INSTALL_LIBDIR as I expect on Ubuntu for the example I gave? > > I am expecting to see either lib64/lib (for 64/32 bit) or a triplet for > (32-bit). Now it's always 'lib'. Debian / Ubuntu injects this additional triplet for multiarc