Added CMake command to export compiler directories to support emacs LSP mode. (#26118)
This commit is contained in:
parent
0e6e9c23a1
commit
b909560ed5
4 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,7 @@ def cmake_args(self):
|
|||
spec = self.spec
|
||||
args = [
|
||||
'-DCMAKE_CXX_STANDARD:STRING=17',
|
||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||
'-DALUMINUM_ENABLE_CUDA:BOOL=%s' % ('+cuda' in spec),
|
||||
'-DALUMINUM_ENABLE_NCCL:BOOL=%s' % ('+nccl' in spec or '+rccl' in spec),
|
||||
'-DALUMINUM_ENABLE_ROCM:BOOL=%s' % ('+rocm' in spec)]
|
||||
|
|
|
@ -145,6 +145,7 @@ def cmake_args(self):
|
|||
|
||||
args = [
|
||||
'-DCMAKE_CXX_STANDARD=17',
|
||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||
'-DCMAKE_INSTALL_MESSAGE:STRING=LAZY',
|
||||
'-DBUILD_SHARED_LIBS:BOOL=%s' % ('+shared' in spec),
|
||||
'-DH2_ENABLE_ALUMINUM=%s' % ('+al' in spec),
|
||||
|
|
|
@ -146,6 +146,7 @@ def cmake_args(self):
|
|||
|
||||
args = [
|
||||
'-DCMAKE_CXX_STANDARD=14',
|
||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||
'-DCMAKE_INSTALL_MESSAGE:STRING=LAZY',
|
||||
'-DBUILD_SHARED_LIBS:BOOL=%s' % ('+shared' in spec),
|
||||
'-DHydrogen_ENABLE_OPENMP:BOOL=%s' % ('+openmp' in spec),
|
||||
|
|
|
@ -296,6 +296,7 @@ def cmake_args(self):
|
|||
args = self.common_config_args
|
||||
args.extend([
|
||||
'-DCMAKE_CXX_STANDARD=17',
|
||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||
'-DLBANN_WITH_CNPY=%s' % ('+numpy' in spec),
|
||||
'-DLBANN_DETERMINISTIC:BOOL=%s' % ('+deterministic' in spec),
|
||||
'-DLBANN_WITH_HWLOC=%s' % ('+hwloc' in spec),
|
||||
|
|
Loading…
Reference in a new issue