Skip to content

Commit

Permalink
set C23 as the standard... will this work (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Dec 19, 2023
1 parent ea42119 commit 88645d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 23)
set(CMAKE_CXX_STANDARD 17)

set(EXTRA_COMPONENT_DIRS ../../src/components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
Expand Down
2 changes: 1 addition & 1 deletion examples/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.13)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD 23)

project(bluepad32_linux_example_app C ASM)

Expand Down
2 changes: 1 addition & 1 deletion examples/pico_w/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include(pico_sdk_import.cmake)
set(BTSTACK_ROOT ${BLUEPAD32_ROOT}/external/btstack)

project(bluepad32_picow_example_app C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD 23)
set(CMAKE_CXX_STANDARD 17)

# initialize the Raspberry Pi Pico SDK
Expand Down
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 23)
set(CMAKE_CXX_STANDARD 17)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bluepad32-app)

0 comments on commit 88645d5

Please sign in to comment.