fix cmake boolean
This commit is contained in:
+4
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user