mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
fix: force c++11 for unit tests
This commit is contained in:
parent
da534a1cea
commit
90b9f0f86d
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 3.0)
|
||||
cmake_minimum_required (VERSION 3.1)
|
||||
project(fuse-wsfs VERSION 0.1.0 DESCRIPTION "Websocket filesystem based on libfuse")
|
||||
|
||||
option(WITH_TESTS "enable unit tests" OFF)
|
||||
@ -12,6 +12,9 @@ pkg_check_modules(LWS REQUIRED libwebsockets)
|
||||
pkg_check_modules(JANSSON REQUIRED jansson)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(C_WARNINGS -Wall -Wextra)
|
||||
|
||||
set(EXTRA_INCLUDE_DIRS
|
||||
@ -30,7 +33,6 @@ set(EXTRA_LIBS
|
||||
)
|
||||
|
||||
set(EXTRA_CFLAGS
|
||||
${CMAKE_C_FLAGS}
|
||||
${C_WARNINGS}
|
||||
${FUSE3_CFLAGS_OTHER}
|
||||
${LWS_CFLAGS_OTHER}
|
||||
|
Loading…
Reference in New Issue
Block a user