fix cmake boolean
This commit is contained in:
parent
1bcbd08c6c
commit
7996b25621
|
|
@ -47,13 +47,13 @@ pkg_check_modules(LIBPROCPS libprocps)
|
|||
pkg_check_modules(LIBPROC2 libproc2)
|
||||
|
||||
if (LIBPROCPS_FOUND)
|
||||
add_compile_definitions(USE_OLD_PID_VAL=false)
|
||||
add_compile_definitions(USE_OLD_PID_VAL=0)
|
||||
elseif (LIBPROC2_FOUND)
|
||||
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()
|
||||
|
||||
add_compile_definitions(USE_OLD_PID_VAL=true)
|
||||
else()
|
||||
message(FATAL_ERROR "Either libprocps or libproc2 is required")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue