-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zephyr: CMake error when Log Management is enabled. #86
Comments
NZSmartie
added a commit
to NZSmartie/mynewt-mcumgr
that referenced
this issue
Jun 13, 2020
Part of apache#86, enabling this option highlights the failed CMake configuration due to lack of log_mgmnt command from being compiled. Signed-off-by: Roman Vaughan <nzsmartie@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modifying
samples/smp_svr/zephyr/prj.conf
and addingCONFIG_MCUMGR_CMD_LOG_MGMT=y
to the following file:
mynewt-mcumgr/samples/smp_svr/zephyr/prj.conf
Lines 34 to 38 in 7658d09
Building the sample application with
west build
will cause CMake to error with the following:The
CMakesLists.txt
file has a couple of errors.mynewt-mcumgr/cmd/log_mgmt/CMakeLists.txt
Lines 18 to 28 in 7658d09
Adding parentheses to the trailing
endif
(becommingendif()
)will fix the syntax error, but then present a new error:the source files listed are prefixed with
cmd/log_mgmt/
which is the directory the currentCMakeLsits.txt
file is in. Removing the prefix resolves the CMake errors.The text was updated successfully, but these errors were encountered: