forked from Ferdi265/cxx-ring-buffer
Some changes required to get this compiling with esp-idf cmake
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
if(IDF_TARGET STREQUAL "esp32")
|
||||
|
||||
set(RING_BUFFER_NOEXCEPT ON)
|
||||
set(RING_BUFFER_CONSTEXPR ON)
|
||||
set(RING_BUFFER_CONSTEXPR_DESTRUCTORS ON)
|
||||
|
||||
else()
|
||||
|
||||
try_compile(cxx-least-11 ${CMAKE_BINARY_DIR}/detect ${CMAKE_SOURCE_DIR}/detect/cxxstd.cpp
|
||||
COMPILE_DEFINITIONS -DCXX_STANDARD=201103
|
||||
CXX_STANDARD ${CMAKE_CXX_STANDARD}
|
||||
@ -34,3 +42,5 @@ if(constexpr-destructors-compile)
|
||||
set(RING_BUFFER_CONSTEXPR_DESTRUCTORS ON)
|
||||
message(STATUS "Enabling RING_BUFFER_CONSTEXPR_DESTRUCTORS (C++20 and up)")
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user