diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ac82c466ade7..3e7e654ca71a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,8 +140,10 @@ endif() option(WITH_USDT "Enable tracepoints for Userspace, Statically Defined Tracing." OFF) if(WITH_USDT) +if(UNIX AND NOT APPLE) find_package(USDT MODULE REQUIRED) endif() +endif() cmake_dependent_option(ENABLE_EXTERNAL_SIGNER "Enable external signer support." ON "NOT WIN32" OFF)