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, >

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