Skip to content

Commit 5342f88

Browse files
committed
[interpreter] Set CMake properties only if target available.
When the unittests were disabled temporarily, the condition still evaluated to true, although the target didn't exist.
1 parent c27636a commit 5342f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,6 @@ else()
557557
endif()
558558

559559
add_subdirectory(CppInterOp)
560-
if(testing)
560+
if(TARGET CppInterOpUnitTests)
561561
set_target_properties(CppInterOpUnitTests PROPERTIES EXCLUDE_FROM_ALL OFF)
562562
endif()

0 commit comments

Comments
 (0)