If -DUSE_MBELIB=ON is specified but mbelib is missing, DSDcc builds successfully but without mbelib support. This can lead to confusion, so I think it would be better to fail and report an error message in this case. I've done that by adding the REQUIRED option to the find_package command.
If
-DUSE_MBELIB=ON
is specified but mbelib is missing, DSDcc builds successfully but without mbelib support. This can lead to confusion, so I think it would be better to fail and report an error message in this case. I've done that by adding theREQUIRED
option to thefind_package
command.