mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-01 07:38:26 -04:00
library: check d/o escape seq value <= 255, better error messages
GUI: cliwindow: `#if _WIN32` -> `#ifdef _WIN32`, add "-Wundef" check to cmake cmake: backend: add C90 (C89) compat compiler check docs: update "README" pandoc, "README.linux" (Fedora 39 -> 40) tests: test_png: add some more text examples
This commit is contained in:
parent
b42d5baf4c
commit
34be69d241
14 changed files with 208 additions and 169 deletions
|
@ -54,6 +54,15 @@ function(zint_target_compile_definitions scope definition)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
function(zint_target_compile_options scope option)
|
||||
if(ZINT_SHARED)
|
||||
target_compile_options(zint ${scope} ${option})
|
||||
endif()
|
||||
if(ZINT_STATIC)
|
||||
target_compile_options(zint-static ${scope} ${option})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(zint_target_include_directories)
|
||||
if(ZINT_SHARED)
|
||||
target_include_directories(zint ${ARGN})
|
||||
|
@ -80,6 +89,11 @@ if(ZINT_TEST)
|
|||
zint_target_compile_definitions(PUBLIC ZINT_TEST)
|
||||
endif()
|
||||
|
||||
check_c_compiler_flag("-Wc90-c99-compat" C_COMPILER_FLAG_WC90_C99_COMPAT)
|
||||
if(C_COMPILER_FLAG_WC90_C99_COMPAT)
|
||||
zint_target_compile_options(PRIVATE "-Wc90-c99-compat")
|
||||
endif()
|
||||
|
||||
if(NOT MSVC)
|
||||
# Link with standard C math library.
|
||||
zint_target_link_libraries(m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue