fix c++98 being detected as newer than c++11

This commit is contained in:
Ferdinand Bachmann
2020-04-18 15:33:56 +02:00
parent d67b00aa2f
commit 34260c53cb
3 changed files with 19 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ endif()
add_library(ring-buffer INTERFACE)
target_include_directories(ring-buffer INTERFACE include/)
target_compile_features(ring-buffer INTERFACE cxx_std_11)
if(RING_BUFFER_CONSTEXPR)
target_compile_definitions(ring-buffer INTERFACE RING_BUFFER_CONSTEXPR)