From ce61e866c3458e3487fe423a7331f41bcade4d9d Mon Sep 17 00:00:00 2001 From: zhangjun21 Date: Tue, 6 Feb 2024 11:12:38 +0800 Subject: [PATCH] =?UTF-8?q?CMake=EF=BC=9ADuplicate=20definition=20of=20CMA?= =?UTF-8?q?KE=5FCXX=5FSTANDARD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab6a9efa9c..69f856617a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)