diff options
author | Joerg Hofrichter <joerg.hofrichter@ni.com> | 2020-01-22 17:19:04 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-22 12:54:54 -0800 |
commit | 608c8a3ab33db629596c37fc8b00902a77900e20 (patch) | |
tree | ab6148290c351ebcced70fa6ed4299ba2bc10a9f /host/lib/usrp/x300 | |
parent | 84bb89878ce6fb08ed512532a0e934d89ca4b7d3 (diff) | |
download | uhd-608c8a3ab33db629596c37fc8b00902a77900e20.tar.gz uhd-608c8a3ab33db629596c37fc8b00902a77900e20.tar.bz2 uhd-608c8a3ab33db629596c37fc8b00902a77900e20.zip |
mpm: fixed cmake macro for enabling modules
The macro MPM_REGISTER_COMPONENT did not work as described: in case
the default enable was set to ON and all dependencies were met, the
module was still not enabled.
Also made the status prints more helpful:
- print the default value,
- print the user override (if one was provided)
- print the resulting VAR = VALUE
- print the override hint only if the user did not
already specify an override
Example of old incorrect behavior:
-- Configuring Mykonos support...
-- Dependency ENABLE_LIBMPM = ON
-- Disabling Mykonos support.
-- Override with -DENABLE_MYKONOS=ON/OFF
Example of new correct behavior (also with changed prints):
-- Configuring Mykonos support...
-- Default value ENABLE_MYKONOS = ON
-- Dependency ENABLE_LIBMPM = ON
-- Enabling Mykonos support (ENABLE_MYKONOS = ON)
-- Override with -DENABLE_MYKONOS=ON/OFF
Diffstat (limited to 'host/lib/usrp/x300')
0 files changed, 0 insertions, 0 deletions