Skip to content

Commit

Permalink
Fix: move MG_MAX_HTTP_HEADERS to global compile time options
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Nov 19, 2024
1 parent c25b1b9 commit 3de3d27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ configure_file(contrib/initscripts/mympd.freebsdrc.in contrib/initscripts/mympd.
# global compile options
add_compile_options(
"-DMPACK_HAS_CONFIG=1"
"-DMG_MAX_HTTP_HEADERS=50"
)
# set myMPD specific debug define
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
Expand Down
1 change: 0 additions & 1 deletion dist/mongoose/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ target_compile_options(mongoose
"-DMG_ENABLE_DIRLIST=1"
"-DMG_ENABLE_SSI=0"
"-DMG_TLS=MG_TLS_OPENSSL"
"-DMG_MAX_HTTP_HEADERS=50"
)

if(CMAKE_BUILD_TYPE MATCHES "(Debug|Release|RelWithDebInfo|MinSizeRel)")
Expand Down
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ configure_file(utility.h.in "${PROJECT_BINARY_DIR}/test/utility.h")
set(TEST_SOURCES
main.c
utility.c
../src/lib/api.c
../src/lib/api.c
../src/lib/cache_disk_lyrics.c
../src/lib/cache_rax_album.c
../src/lib/cache_rax.c
Expand Down Expand Up @@ -126,6 +126,7 @@ target_compile_options(unit_test
PRIVATE
"-Wno-unused-function"
"-Wno-redundant-decls"
"-DMG_MAX_HTTP_HEADERS=50"
)

target_link_libraries(unit_test
Expand Down

0 comments on commit 3de3d27

Please sign in to comment.