[CMake] custom_command and compile_commands.json

2017-11-05 Thread Nagy-Egri Máté Ferenc via CMake
Hi! I am trying to export a custom_command to the compile_commands.json database, but no luck up until now. The only similar question I found on the web is a Stackoverflow thread named „cmake clang-tidy (or other script) as custom target”. I am trying to bring together C/C++ compilation, GnuPl

Re: [CMake] target_compile_features question

2017-11-05 Thread Lectem
Because you are looking at an old CMake version 😉 I think it was introduced in cmake 3.8.2 ? De : Florian Lindner Envoyé le :dimanche 5 novembre 2017 17:03 À : cmake@cmake.org Objet :Re: [CMake] target_compile_features question Am 05.11.2017 um 15:07 schrieb Jan Christoph Uhde: > Hi, > > I hav

Re: [CMake] target_compile_features question

2017-11-05 Thread Florian Lindner
Am 05.11.2017 um 15:07 schrieb Jan Christoph Uhde: > Hi, > > I have a project using CMake 3.9. > The project contains a header only library mylib. > The library hast set the following property: > > target_compile_features(mylib INTERFACE cxx_std_17) > > Now I try to add otherlib to mylib (

Re: [CMake] [CMAKE] target_compile_features question

2017-11-05 Thread Jan Christoph Uhde
Sorry for the noise! I just noticed that I made a mistake in the shared lib version. I have obviously to use PUBLIC instead of INTERFACE, when specifying compile features. Jan On 2017-11-05 15:07, Jan Christoph Uhde wrote: > Hi, > > I have a project using CMake 3.9. > The project contains a hea

[CMake] target_compile_features question

2017-11-05 Thread Jan Christoph Uhde
Hi, I have a project using CMake 3.9. The project contains a header only library mylib. The library hast set the following property: target_compile_features(mylib INTERFACE cxx_std_17) Now I try to add otherlib to mylib (INTERFACE as well). otherlib has set some c++11 compile_features. When

Re: [CMake] CMake targeting Android with "Visual Studio 15 2017" generator issue

2017-11-05 Thread Dvir Yitzchaki
There was a CMake fork by Microsoft for generating VS 2015 Android projects (see here) but it seems it was discontinued. Regards, Dvir -Original Message- From: CMake [mailto:c