Fix error message (#175)
Only generate "Recompile with '-DENABLESECURITY=ON' error when ROS_SECURITY_STRATEGY="Enforce" Signed-off-by: Sid Faber <sid.faber@canonical.com>
This commit is contained in:
parent
3397c95095
commit
8e14104246
1 changed files with 6 additions and 5 deletions
|
@ -851,11 +851,12 @@ rmw_ret_t configure_qos_for_security(
|
|||
return ret;
|
||||
#else
|
||||
(void) qos;
|
||||
(void) security_options;
|
||||
if (security_options->enforce_security == RMW_SECURITY_ENFORCEMENT_ENFORCE) {
|
||||
RMW_SET_ERROR_MSG(
|
||||
"Security was requested but the Cyclone DDS being used does not have security "
|
||||
"support enabled. Recompile Cyclone DDS with the '-DENABLE_SECURITY=ON' "
|
||||
"CMake option");
|
||||
}
|
||||
return RMW_RET_UNSUPPORTED;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue