diff --git a/examples/templates/cmakelists_parallel_F2003_ex.in b/examples/templates/cmakelists_parallel_F2003_ex.in index 1d5670752f..71e11bfe31 100644 --- a/examples/templates/cmakelists_parallel_F2003_ex.in +++ b/examples/templates/cmakelists_parallel_F2003_ex.in @@ -106,6 +106,8 @@ foreach(example ${examples}) # libraries to link against target_link_libraries(${example} ${LIBRARIES}) + target_compile_definitions(${example} PRIVATE SUNDIALS_INT@SUNDIALS_INDEX_SIZE@_T) + # add the example to ctest add_test(NAME ${example} COMMAND ${example})