Skip to content

Commit eff76d3

Browse files
committed
fix: avoid common CMAKE flags for variable names
1 parent 8d4d29a commit eff76d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ foreach(t ${PYBIND11_CROSS_MODULE_GIL_TESTS})
216216
endforeach()
217217

218218
set(testdir ${CMAKE_CURRENT_SOURCE_DIR})
219-
foreach(target ${test_targets})
219+
foreach(tgt ${test_targets})
220220
set(test_files ${PYBIND11_TEST_FILES})
221-
if(NOT TARGET STREQUAL "pybind11_tests")
221+
if(NOT "${tgt}" STREQUAL "pybind11_tests")
222222
set(test_files "")
223223
endif()
224224

0 commit comments

Comments
 (0)