Bug fix when building pldm with oem-ibm diabled

Fixed issues that were seen when trying to build pldm with "oem-ibm"
disabled. Changed both the meson.build and pldmtool.cpp file to check
for the "oem-ibm" option.

Signed-off-by: Zahed Hossain <zahzahed@in.ibm.com>
Change-Id: If052cb6b8ff4dbb11d25ec2d0c0ea7828de3b0da
diff --git a/tool/meson.build b/tool/meson.build
index 12daf0d..48f4c26 100644
--- a/tool/meson.build
+++ b/tool/meson.build
@@ -7,9 +7,14 @@
   'pldm_bios_cmd.cpp',
   'pldm_fru_cmd.cpp',
   'pldmtool.cpp',
-  'oem/ibm/pldm_host_cmd.cpp'
 ]
 
+if get_option('oem-ibm').enabled()
+sources += [
+    'oem/ibm/pldm_host_cmd.cpp'
+  ]
+endif
+
 executable(
   'pldmtool',
   sources,
diff --git a/tool/pldmtool.cpp b/tool/pldmtool.cpp
index bbb222d..22cdd6b 100644
--- a/tool/pldmtool.cpp
+++ b/tool/pldmtool.cpp
@@ -73,7 +73,10 @@
     pldmtool::bios::registerCommand(app);
     pldmtool::platform::registerCommand(app);
     pldmtool::fru::registerCommand(app);
+
+#ifdef OEM_IBM
     pldmtool::oem_ibm::power_host::registerCommand(app);
+#endif
 
     CLI11_PARSE(app, argc, argv);
     return 0;