Skip to content

Commit 46e9698

Browse files
committed
stack on #12566
[ghstack-poisoned]
2 parents 62658a6 + a2f14ac commit 46e9698

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ endif()
166166

167167
if(EXECUTORCH_BUILD_TESTS)
168168
include(CTest)
169+
else()
170+
# It looks like some of our third-party deps will try to turn this
171+
# on if it's not explicitly set, leading to confusing behavior.
172+
set(BUILD_TESTING OFF)
169173
endif()
170174

171175
add_subdirectory(third-party)

0 commit comments

Comments
 (0)