CMake: improve debug macros

This commit is contained in:
Albrecht Schlosser 2022-11-11 17:05:11 +01:00
parent 74b9d5fb05
commit 578601f062
2 changed files with 9 additions and 3 deletions

View File

@ -44,15 +44,21 @@ macro (fl_debug_pkg PREFIX NAME)
fl_debug_var (${PREFIX}_FOUND)
if (${PREFIX}_FOUND)
fl_debug_var (${PREFIX}_INCLUDE_DIRS)
fl_debug_var (${PREFIX}_CFLAGS)
fl_debug_var (${PREFIX}_LIBRARIES)
fl_debug_var (${PREFIX}_LINK_LIBRARIES)
fl_debug_var (${PREFIX}_LIBRARY_DIRS)
fl_debug_var (${PREFIX}_LDFLAGS)
fl_debug_var (${PREFIX}_LDFLAGS_OTHER)
fl_debug_var (${PREFIX}_INCLUDE_DIRS)
fl_debug_var (${PREFIX}_CFLAGS)
fl_debug_var (${PREFIX}_CFLAGS_OTHER)
fl_debug_var (${PREFIX}_STATIC_INCLUDE_DIRS)
fl_debug_var (${PREFIX}_STATIC_CFLAGS)
fl_debug_var (${PREFIX}_STATIC_LIBRARIES)
fl_debug_var (${PREFIX}_STATIC_LINK_LIBRARIES)
fl_debug_var (${PREFIX}_STATIC_LIBRARY_DIRS)
fl_debug_var (${PREFIX}_VERSION)
fl_debug_var (${PREFIX}_PREFIX)
fl_debug_var (${PREFIX}_INCLUDEDIR)

View File

@ -33,7 +33,7 @@
#######################################################################
macro (fl_debug_var name)
set (min_len 30)
set (min_len 32)
set (var "${name}")
string(LENGTH "${var}" len)
while (len LESS min_len)