Skip to content

target_compile_features in CMakeLists.txt triggers an error #32577

@Thurnheer

Description

@Thurnheer

I am developing a framework. In the framework's CMakeLists.txt I've the following statement:
target_compile_features(myFramework PRIVATE cxx_std_17)

The application and the framework are developed using C++.

When I now run west build, I got the following error during cmake configuration:
target_compile_features no known features for CXX compiler "GNU" version 9.2.0

Using the toolchains from the zephyr SDK fails while trying to compile a simple test program.

I'm using the zephyr SDK for compilation, develop on Ubuntu LTS 20.04, use west version 0.8.0 and zephyr master.
cmake version 3.16.3

Is there a way out of this?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions