fix cmake boolean

This commit is contained in:
Paul Dino Jones 2026-04-23 17:20:57 -04:00
parent 1bcbd08c6c
commit 7996b25621
1 changed files with 4 additions and 4 deletions

View File

@ -47,13 +47,13 @@ pkg_check_modules(LIBPROCPS libprocps)
pkg_check_modules(LIBPROC2 libproc2) pkg_check_modules(LIBPROC2 libproc2)
if (LIBPROCPS_FOUND) if (LIBPROCPS_FOUND)
add_compile_definitions(USE_OLD_PID_VAL=false) add_compile_definitions(USE_OLD_PID_VAL=0)
elseif (LIBPROC2_FOUND) elseif (LIBPROC2_FOUND)
if (LIBPROC2_VERSION VERSION_GREATER_EQUAL "4.0.5") if (LIBPROC2_VERSION VERSION_GREATER_EQUAL "4.0.5")
add_compile_definitions(USE_OLD_PID_VAL=false) add_compile_definitions(USE_OLD_PID_VAL=0)
else()
add_compile_definitions(USE_OLD_PID_VAL=1)
endif() endif()
add_compile_definitions(USE_OLD_PID_VAL=true)
else() else()
message(FATAL_ERROR "Either libprocps or libproc2 is required") message(FATAL_ERROR "Either libprocps or libproc2 is required")
endif() endif()