-
Notifications
You must be signed in to change notification settings - Fork 2
/
clair.modulefile.in
34 lines (27 loc) · 1.11 KB
/
clair.modulefile.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
25
26
27
28
29
30
31
32
33
34
#%Module1.0
#
# To be installed as ${MODULEPATH}/cpp2py/@CPP2PY_VERSION@
set name cpp2py
set version @CPP2PY_VERSION@
set root @CMAKE_INSTALL_PREFIX@
set git_hash @CPP2PY_GIT_HASH@
set url "https://github.com/flatironinstitute/clair"
set description "Clair (Clang Introspection and Reflection) tools. A set of clang tools developed for Flatiron/CCQ"
module-whatis "$description"
proc ModulesHelp { } {
global description url version git_hash
puts stderr "Description: $description"
puts stderr "URL: $url"
puts stderr "Version: $version"
puts stderr "Git hash: $git_hash"
}
# Only one version of cpp2py can be loaded at a time
conflict $name
setenv CPP2PY_ROOT $root
setenv CPP2PY_VERSION $version
setenv CPP2PY_GIT_HASH $git_hash
prepend-path PATH $root/bin
prepend-path CPLUS_INCLUDE_PATH $root/include
prepend-path LIBRARY_PATH $root/lib
prepend-path PYTHONPATH $root/@PYTHON_LIB_DEST_ROOT@
prepend-path CMAKE_PREFIX_PATH $root/lib/cmake/cpp2py