Skip to content

Commit

Permalink
Merge pull request #11 from jhobern/patch-1
Browse files Browse the repository at this point in the history
Allow alternate extensions for c++ files
  • Loading branch information
algorys authored Feb 14, 2018
2 parents ff0b0c4 + 8e63d94 commit 2e19284
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake_converter/project_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ def add_cmake_project(self, language):
:type language: str
"""

available_language = {
'cpp': 'CXX',
'c': 'C'
}
CPP_EXTENSIONS = ['cc', 'cp', 'cxx', 'cpp', 'CPP', 'c++', 'C']

available_language = {'c': 'C'}
available_language.update(dict.fromkeys(CPP_EXTENSIONS, 'CXX'))

self.cmake.write('\n')
self.cmake.write(
Expand Down

0 comments on commit 2e19284

Please sign in to comment.