#!/usr/bin/env sh
-# Copyright (c) 2012-2022. The SimGrid Team. All rights reserved.
+# Copyright (c) 2012-2023. The SimGrid Team. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package.
REAL_FORTRAN_COMPILER=@SMPI_Fortran_COMPILER@
-INCLUDEARGS="@includeflag@"
-CMAKE_LINKARGS="-L@libdir@"
-
@SMPITOOLS_SH@
+list_set INCLUDEARGS @includeflag@
+list_set CMAKE_LINKARGS "-L@libdir@"
+
list_set FFLAGS @SMPI_Fortran_FLAGS@
list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm"
if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
list_add CMDLINE "-o${ORIGFILE}.o"
fi
-list_add_not_empty CMDLINE ${INCLUDEARGS}
+list_add_not_empty CMDLINE "${INCLUDEARGS}"
list_add_not_empty CMDLINE "${CMAKE_LINKARGS}"
list_add_not_empty CMDLINE "${LINKARGS}"