Re: [CMake] Setting properties to interface

2017-04-16 Thread Craig Scott
On Mon, Apr 17, 2017 at 5:04 AM, Tiago Macarios wrote: > Thanks Craig! That works. Just to confirm, there is no way to disable > extensions for a single interface? > Not that I'm aware of. > > On Sun, Apr 16, 2017 at 1:51 AM, Craig Scott > wrote: > >> As per my other email just now, you shou

Re: [CMake] Setting properties to interface

2017-04-16 Thread Tiago Macarios
Thanks Craig! That works. Just to confirm, there is no way to disable extensions for a single interface? On Sun, Apr 16, 2017 at 1:51 AM, Craig Scott wrote: > As per my other email just now, you should be able to achieve what you > want with the new CMake 3.8.0 release: > > add_library(a_lib INT

Re: [CMake] CMAKE_SIZEOF_VOID_P question

2017-04-16 Thread Thomas Nilefalk
Ghislain Vaillant skrev: 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 tri

Re: [CMake] New Visual Studio project types

2017-04-16 Thread Robert Bielik
Still, it is supported by visual studio, to build remotely, on Linux. I would like to take advantage of that with my current cmake projects, which I cannot do today. > -Original Message- > From: Hendrik Sattler [mailto:p...@hendrik-sattler.de] > Sent: den 16 april 2017 12:04 > To: cmake@

Re: [CMake] New Visual Studio project types

2017-04-16 Thread Hendrik Sattler
This is not cross-platform: "Today Visual Studio only supports building remotely on the Linux target machine." Am 16. April 2017 08:19:49 MESZ schrieb Robert Bielik : >Hi all, > >With the "new" Cross-platform project types in VS2015+ >(https://blogs.msdn.microsoft.com/vcblog/2016/03/30/visual-c-

Re: [CMake] Setting properties to interface

2017-04-16 Thread Craig Scott
As per my other email just now, you should be able to achieve what you want with the new CMake 3.8.0 release: add_library(a_lib INTERFACE) target_compile_features(a_lib INTERFACE cxx_std_11) I did a quick test with the above just now and it seems to work as expected. You may, however, still want

Re: [CMake] CXX_STANDARD use latest

2017-04-16 Thread Craig Scott
Not sure if it lines up exactly with what you want, but the latest CMake release (3.8.0) allows you to specify the minimum language standard via compiler features: https://cmake.org/cmake/help/latest/manual/cmake-compile-features.7.html#requiring-language-standards On Sun, Apr 16, 2017 at 12:48