Browse Source

Disable gnu cxx extensions

pull/3/head
Jason Rhinelander 2 years ago
parent
commit
344fcb80d6
  1. 1
      CMakeLists.txt
  2. 7
      tests/CMakeLists.txt

1
CMakeLists.txt

@ -74,6 +74,7 @@ target_compile_options(lokimq PRIVATE -Wall -Wextra -Werror)
set_target_properties(lokimq PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
POSITION_INDEPENDENT_CODE ON
)

7
tests/CMakeLists.txt

@ -18,7 +18,10 @@ pkg_check_modules(SODIUM REQUIRED libsodium)
target_link_libraries(tests Catch2::Catch2 lokimq ${SODIUM_LIBRARIES} Threads::Threads)
set_property(TARGET tests PROPERTY CXX_STANDARD 14)
set_property(TARGET tests PROPERTY CXX_STANDARD_REQUIRED ON)
set_target_properties(tests PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
add_custom_target(check COMMAND tests)

Loading…
Cancel
Save