CMake: Fix how missing backends are handled
- Replace references to the deleted null_backend.py script with an error
message in CMake.
- Add the missing pw_log_null module.
Change-Id: I7b279cff0c6cd61e97d9c3a622ffd37449319e31
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/44600
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
diff --git a/pw_protobuf_compiler/proto.cmake b/pw_protobuf_compiler/proto.cmake
index 2410c5d..b7a4643 100644
--- a/pw_protobuf_compiler/proto.cmake
+++ b/pw_protobuf_compiler/proto.cmake
@@ -223,12 +223,12 @@
if("${dir_pw_third_party_nanopb}" STREQUAL "")
add_custom_target("${NAME}._generate.nanopb"
- cmake -E echo
+ "${CMAKE_COMMAND}" -E echo
ERROR: Attempting to use pw_proto_library, but
dir_pw_third_party_nanopb is not set. Set dir_pw_third_party_nanopb
to the path to the Nanopb repository.
COMMAND
- cmake -E false
+ "${CMAKE_COMMAND}" -E false
DEPENDS
${DEPS}
SOURCES