Compare commits

...

3 Commits

Author SHA1 Message Date
p fbb577f3f8 CMakeLists.txt: use scoped target_link_libraries
Alpine 3.23 Success
OpenBSD 7.8 Success
2026-07-20 01:57:16 +02:00
p b7f6b0c757 AddThreads.cmake: use scoped target_link_libraries
Alpine 3.23 Success
OpenBSD 7.8 Scripts failed
"All uses of target_link_libraries with a target must be either
all-keyword or all-plain." and this is the superiour choice.
2026-07-20 01:46:51 +02:00
p f28aa74e6b asciiman: match __a_b__ and **b*c** properly
Alpine 3.23 Success
OpenBSD 7.8 Success
The former is italic "a_b" and the latter is bold "b*c".
2026-07-15 05:39:21 +02:00
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -50,7 +50,7 @@ endif ()
foreach (name ${tests})
add_executable (test-${name} tests/${name}.c ${common_sources})
add_threads (test-${name})
target_link_libraries (test-${name} ${common_libraries})
target_link_libraries (test-${name} PRIVATE ${common_libraries})
add_test (NAME test-${name} COMMAND test-${name})
endforeach ()
@@ -97,7 +97,7 @@ add_custom_target (test-lxdrgen-outputs ALL DEPENDS ${lxdrgen_outputs})
set_source_files_properties (${lxdrgen_base}.c
PROPERTIES HEADER_FILE_ONLY TRUE)
add_executable (test-lxdrgen-c tests/lxdrgen.c ${lxdrgen_base}.c)
target_include_directories (test-lxdrgen-c PUBLIC ${PROJECT_BINARY_DIR})
target_include_directories (test-lxdrgen-c PRIVATE ${PROJECT_BINARY_DIR})
add_test (NAME test-lxdrgen-c COMMAND test-lxdrgen-c)
set_source_files_properties (${lxdrgen_base}.cpp
@@ -109,8 +109,8 @@ else ()
add_executable (test-lxdrgen-cpp tests/lxdrgen.cpp
${lxdrgen_base}.cpp tools/lxdrgen-cpp-posix.cpp)
endif ()
target_link_libraries (test-lxdrgen-cpp ${common_libraries})
target_include_directories (test-lxdrgen-cpp PUBLIC ${PROJECT_BINARY_DIR})
target_link_libraries (test-lxdrgen-cpp PRIVATE ${common_libraries})
target_include_directories (test-lxdrgen-cpp PRIVATE ${PROJECT_BINARY_DIR})
add_test (NAME test-lxdrgen-cpp COMMAND test-lxdrgen-cpp)
find_program (GO_EXECUTABLE go)
+1 -1
View File
@@ -18,6 +18,6 @@ function (add_threads target)
INTERFACE_COMPILE_OPTIONS "-pthread")
endif ()
if (CMAKE_THREAD_LIBS_INIT)
target_link_libraries (${target} "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries (${target} PUBLIC "${CMAKE_THREAD_LIBS_INIT}")
endif ()
endfunction ()
+2 -2
View File
@@ -139,9 +139,9 @@ function format(line, v) {
while (line) {
if (match(line, /^[+][+][+][^+]+[+][+][+]/)) {
v = v substr(line, RSTART + 3, RLENGTH - 6)
} else if (match(line, /^__[^_]+__/)) {
} else if (match(line, /^__([^_]+.)*[^_]+__/)) {
v = v "\\fI" substr(line, RSTART + 2, RLENGTH - 4) "\\fP"
} else if (match(line, /^[*][*][^*]+[*][*]/)) {
} else if (match(line, /^[*][*]([^*]+.)*[^*]+[*][*]/)) {
v = v "\\fB" substr(line, RSTART + 2, RLENGTH - 4) "\\fP"
} else if (match(line, /^_[^_]+_/) &&
substr(line, RSTART + RLENGTH) !~ /^[[:alnum:]]/) {