-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from lukemartinlogan/master
Add additional configuration to mdm
- Loading branch information
Showing
8 changed files
with
65 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ class Hermes(CMakePackage): | |
version('dev-priv', git='https://github.com/lukemartinlogan/hermes.git', branch='dev') | ||
variant('vfd', default=False, description='Enable HDF5 VFD') | ||
variant('ares', default=False, description='Enable full libfabric install') | ||
variant('debug', default=False, description='Enable debug mode') | ||
depends_on('[email protected]') | ||
depends_on('cereal') | ||
depends_on('[email protected]') | ||
|
@@ -26,19 +27,21 @@ def cmake_args(self): | |
'-DHERMES_RPC_THALLIUM=ON', | ||
'-DHERMES_INSTALL_TESTS=ON', | ||
'-DBUILD_TESTING=ON'] | ||
if '+debug' in self.spec: | ||
args.append('-DCMAKE_BUILD_TYPE=Debug') | ||
if '+vfd' in self.spec: | ||
args.append(self.define('HERMES_ENABLE_VFD', 'ON')) | ||
return args | ||
|
||
def set_include(self, env, path): | ||
env.append_flags('CFLAGS', '-I{}'.format(path)) | ||
env.append_flags('CXXFLAGS', '-I{}'.format(path)) | ||
env.append_flags('CPATH', '{}'.format(path)) | ||
env.append_flags('CMAKE_PREFIX_PATH', '-I{}'.format(path)) | ||
env.prepend_path('CPATH', '{}'.format(path)) | ||
env.prepend_path('CMAKE_PREFIX_PATH', '{}'.format(path)) | ||
|
||
def set_lib(self, env, path): | ||
env.prepend_path('LD_LIBRARY_PATH', path) | ||
env.append_flags('LIBRARY_PATH', '{}'.format(path)) | ||
env.prepend_path('LIBRARY_PATH', '{}'.format(path)) | ||
env.append_flags('LDFLAGS', '-L{}'.format(path)) | ||
|
||
def set_flags(self, env): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters