-
Notifications
You must be signed in to change notification settings - Fork 1
/
pkgIndex.tcl.in
24 lines (22 loc) · 1.04 KB
/
pkgIndex.tcl.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Tcl package index file, version 1.1
# This file is supposed to be sourced either when an
# application starts up or by a "package unknown" script.
# It invokes the "package ifneeded" command to set up
# package-related information so that packages will be
# loaded automatically in response to "package require"
# commands. When this script is sourced, the variable $dir
# must contain the full path name of this file's directory.
package ifneeded tclmpi @PROJECT_VERSION@ [list source [file join $dir tclmpi.tcl]]
if {[info exists ::env(CTEST_SHARED_OBJECT)] } {
package ifneeded _tclmpi @PROJECT_VERSION@ [list load -global $::env(CTEST_SHARED_OBJECT)]
} elseif {[info exists ::env(MPI_LIB)]} {
package ifneeded _tclmpi @PROJECT_VERSION@ \
[list load -global [file join $::env(MPI_LIB) tcl[info tclversion] \
tclmpi@PROJECT_VERSION@ @TCLMPI_BINARY_MODULE@]]
} else {
package ifneeded _tclmpi @PROJECT_VERSION@ \
[list load -global [file join $dir @TCLMPI_BINARY_MODULE@]]
}
# Local Variables:
# mode: tcl
# End: