Skip to content

Commit

Permalink
Handling failure of cmocka not found gracefully.
Browse files Browse the repository at this point in the history
Signed-off-by: Naresh Nayak <[email protected]>
  • Loading branch information
nayakned authored and SebastianSchildt committed Dec 26, 2024
1 parent c0396fc commit 6418084
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
#

include(CTest)
find_package(cmocka 1.1.0 REQUIRED)
find_package(cmocka 1.1.0 QUIET)

if (NOT cmocka_FOUND)
message(STATUS "cmocka not found, tests will not be built")
return()
endif()

target_compile_options(open1722 PRIVATE -coverage)
target_link_options(open1722 PRIVATE -coverage)
Expand Down

0 comments on commit 6418084

Please sign in to comment.