Skip to content

Commit 06afef5

Browse files
committed
make sure target exists
1 parent 58c635b commit 06afef5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cmake/macros/SundialsAddTest.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,12 @@ macro(SUNDIALS_ADD_TEST NAME EXECUTABLE)
268268

269269
endif()
270270

271-
# set any labels (must quote SUNDIALS_ADD_TEST_LABELS)
272-
if(SUNDIALS_ADD_TEST_LABELS)
273-
set_tests_properties(${NAME} PROPERTIES LABELS
274-
"${SUNDIALS_ADD_TEST_LABELS}")
271+
if(SUNDIALS_TEST_DEVTESTS OR NOT SUNDIALS_ADD_TEST_EXAMPLE_TYPE)
272+
# set any labels (must quote SUNDIALS_ADD_TEST_LABELS)
273+
if(SUNDIALS_ADD_TEST_LABELS)
274+
set_tests_properties(${NAME} PROPERTIES LABELS
275+
"${SUNDIALS_ADD_TEST_LABELS}")
276+
endif()
275277
endif()
276278

277279
endif()

0 commit comments

Comments
 (0)