diff options
author | Ewout van Bekkum <ewout@google.com> | 2022-11-10 16:22:42 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-10 16:22:42 +0000 |
commit | 904bdf432dcef902cedfbf775ac77d03713f8adb (patch) | |
tree | 885b98d6a26d8e0c13db05e07ce6bfab2c3fcfbc /pw_trace | |
parent | 2814d697232b16071f02bbcd66ecba608092901e (diff) | |
download | pigweed-904bdf432dcef902cedfbf775ac77d03713f8adb.tar.gz |
pw_build/cmake: Enable separate backend variable declarations
Extends the CMake facade API to mirror GN in its ability to specify
facade backend variables separate from the facade library
declarations. Outside of making this more consistent with the GN
build, this also enables enable_if for unit tests in the future.
As part of this backend variables for facades are no longer set to
{NAME}.NO_BACKEND_SET by default and instead are set to empty
strings if unset.
Change-Id: Ie0669c702a15a462cef92d546ad28ca945b71027
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/117412
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_trace')
-rw-r--r-- | pw_trace/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw_trace/CMakeLists.txt b/pw_trace/CMakeLists.txt index 4ec89b985..fd2ed620f 100644 --- a/pw_trace/CMakeLists.txt +++ b/pw_trace/CMakeLists.txt @@ -48,7 +48,7 @@ pw_add_test(pw_trace.pw_trace_null_test pw_trace ) -if(NOT "${pw_trace_BACKEND}" STREQUAL "pw_trace.NO_BACKEND_SET") +if(NOT "${pw_trace_BACKEND}" STREQUAL "") pw_add_test(pw_trace.trace_backend_compile_test SOURCES trace_backend_compile_test.cc |