Skip to content

Commit ce3e63c

Browse files
bmehta001Copilot
andcommitted
Guard network detector tests by feature
Compile the Windows detector tests only when HAVE_MAT_NETDETECT is enabled so compact custom SKUs that omit the detector still build the test project. Verified at: - tests/unittests/NetworkDetectorTests.cpp - Solutions/build.compact.props Files changed: - tests/unittests/NetworkDetectorTests.cpp Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: df9f344e-e064-404e-ae6f-c0ef455d747c
1 parent 6da670a commit ce3e63c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/unittests/NetworkDetectorTests.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "common/Common.hpp"
44

5-
#ifdef _WIN32
5+
#if defined(_WIN32) && defined(HAVE_MAT_NETDETECT)
66
#include "pal/desktop/NetworkDetector.hpp"
77

88
using namespace MAT;

0 commit comments

Comments
 (0)