Configurable read buffer size
This commit is contained in:
@@ -86,6 +86,27 @@ FetchContent_MakeAvailable(llhttp)
|
||||
|
||||
include_directories(src)
|
||||
|
||||
# Check for VLA (Variable Length Array) support
|
||||
include(CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
int main() {
|
||||
int n = 10;
|
||||
char arr[n];
|
||||
return 0;
|
||||
}
|
||||
"
|
||||
HAVE_VLA_SUPPORT)
|
||||
|
||||
if(NOT HAVE_VLA_SUPPORT)
|
||||
message(
|
||||
FATAL_ERROR
|
||||
"Compiler must support Variable Length Arrays (VLA). Please use GCC or Clang."
|
||||
)
|
||||
endif()
|
||||
|
||||
message(STATUS "Compiler supports Variable Length Arrays")
|
||||
|
||||
find_package(weaseljson REQUIRED)
|
||||
|
||||
# Generate JSON token hash table using gperf
|
||||
|
||||
Reference in New Issue
Block a user