Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

every time vcxproj contains: Import Condition="'$(CpuOnlyBuild)'=='false'" convert fails #132

Open
lahavy opened this issue Aug 26, 2021 · 0 comments

Comments

@lahavy
Copy link

lahavy commented Aug 26, 2021

My sln is configurable using .prop files.

Every time a project use one of the variables convert fails

here is the verbose output:

3.188063 25> INFO : Parsing... line 379 node Import attrib {'Condition': "'$(CpuOnlyBuild)'=='false'", 'Project': '$(VCTargetsPath)\BuildCustomizations\CUDA $(CudaVersion).targets'}
Traceback (most recent call last):
File "c:\program files\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\program files\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files\Anaconda3\Scripts\cmake-converter.exe_main
.py", line 9, in
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\main.py", line 144, in main
converter.convert_solution(project_context, os.path.abspath(args.solution))
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\visual_studio\solution.py", line 331, in convert_solution
results = self.do_conversion(project_context, input_data_for_converter)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\data_converter.py", line 321, in do_conversion
results.append(self.run_conversion(data_for_converter))
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\data_converter.py", line 289, in run_conversion
target_data['subdirectory'],
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\data_converter.py", line 253, in convert_project
self.collect_data(context)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\data_converter.py", line 53, in collect_data
context.parser.parse(context)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\visual_studio\vcxproj\parser.py", line 145, in parse
self._parse_nodes(context, root)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\parser.py", line 101, in _parse_nodes
node_handlers[child_node_tag](context, child_node)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\parser.py", line 92, in _parse_nodes
self._parse_attributes(context, child_node)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\parser.py", line 119, in _parse_attributes
attributes_handlers[attr](context, attr, node.get(attr), node)
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\visual_studio\vcxproj\parser.py", line 291, in __parse_condition
cmake_setting = make_cmake_configuration(context, found.group(1))
File "c:\program files\anaconda3\lib\site-packages\cmake_converter\utils.py", line 508, in make_cmake_configuration
return "{}|{}".format(*sln_conf_arch)
IndexError: tuple index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant