Skip to content

Commit

Permalink
Disable warning when matching enabled without unstable (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc authored Feb 3, 2025
1 parent 07700e4 commit 8eafbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ if(Z_FEATURE_LINK_SERIAL_USB AND NOT Z_FEATURE_UNSTABLE_API)
endif()

if(Z_FEATURE_MATCHING AND NOT Z_FEATURE_UNSTABLE_API)
message(WARNING "Z_FEATURE_MATCHING can only be enabled when Z_FEATURE_UNSTABLE_API is also enabled. Disabling Z_FEATURE_MATCHING.")
message(STATUS "Z_FEATURE_MATCHING disabled because Z_FEATURE_UNSTABLE_API disabled")
set(Z_FEATURE_MATCHING 0 CACHE STRING "Toggle matching feature" FORCE)
endif()

Expand Down

0 comments on commit 8eafbca

Please sign in to comment.