Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22047

STM32 ARM GCC Toolchain CMake target_compile_features no known features for CXX compiler [duplicate]

$
0
0

Our project is using STM32 GCC ARM Toolchain, using STM32 CMake toolchain file (gcc-arm-none-eabi.cmake) which sets the CMAKE_C_COMPILER_ID and CMAKE_CXX_COMPILER_ID to GNU.

When lines like this are encountered target_compile_features(my_lib PUBLIC cxx_std_11) it complains that ...

target_compile_features no known features for CXX compiler"GNU"version 11.3.1.

I first noticed this when trying to pull in Boost with their CMake files, which use the same target_compile_feature checks.

The CMake project does configure for Linux GCC. My CMake version is 3.30.2.

Edits

  • None of the solutions from the similar question address the issue described here.

Viewing all articles
Browse latest Browse all 22047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>