CMake:Duplicate definition of CMAKE_CXX_STANDARD

CMAKE_CXX_STANDARD is repeatedly defined in the two files, nuttx/CMakeLists(14) and libs/libxx/libcxx.cmake(17), and is defined to different values. Matter needs to use the new features(std::is_signed_v) of c++17,so delete the definition in nuttx/CMakeLists and retain the definition in libs/libxx/libcxx.cmake.

Signed-off-by: zhangjun21 <zhangjun21@xiaomi.com>
This commit is contained in:
zhangjun21 2024-02-06 11:12:38 +08:00 committed by Xiang Xiao
parent 104b0288a6
commit ce61e866c3

View File

@ -48,7 +48,6 @@ endif()
# Basic CMake configuration ##################################################
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)