pavelliavonau/cmakeconverter

Calling cmake-converter in project folder containing Main.vcxproj expects CMakeLists.txt/CMakeLists.txt to exist

Closed this issue · 2 comments

bigla commented

When running
cd project
cmake-converter -p Main.vcxproj -j 1
(which was installed from source with "pip3 install .")
in bash of python docker image (python:latest) any .vcxproj produces:

FileNotFoundError: [Errno 2] No such file or directory: 'CMakeLists.txt/CMakeLists.txt'

It expects existance of following folder structure:
project/
└── CMakeLists.txt
│ └── CMakeLists.txt
└── Main.vcxproj

So
mkdir CMakeLists.txt && touch CMakeLists.txt
has to be done before invocation for conversion to work.

bigla commented

Tried this on Windows too, error persists.

bigla commented

Stepping out to parent folder and running it there works though.
cd .. now in parent folder
cmake-converter -p project\Main.vcxproj -j 1

parent/
__└project/
_____└── Main.vcxproj