Added CMake command to export compiler directories to support emacs LSP mode. (#26118)

This commit is contained in:
Brian Van Essen 2021-09-26 06:47:46 -07:00 committed by GitHub
parent 0e6e9c23a1
commit b909560ed5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View file

@ -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)]

View file

@ -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),

View file

@ -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),

View file

@ -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),