[CMake] target_compile_features question
Florian Lindner
mailinglists at xgm.de
Sun Nov 5 10:54:10 EST 2017
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 (INTERFACE as well). otherlib has set
> some c++11 compile_features.
>
> When I try to compile tests for my lib I see gnu++11 as requested
> standard. Without otherlib gnu++17 is selected.
Hey,
just being curious, is cxx_std_17 a valid feature? I don't see it listed in https://cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html
Best,
Florian
More information about the CMake
mailing list