cmake-tools expects CMakeLists.txt in project root folder #510
Labels
duplicate
a duplicate of an already present issue
enhancement
an enhancement to the product that is either not present or an improvement to an existing feature
Feature: configure
Milestone
Brief Issue Summary
My scenario:
Using GPM (Git Project Manager) for opening a project root.
The Project root contains documentation, sources that compile with different tools (different target architecture) using different toolchain and software pieces.
When opening up the project cmake-tools complains that it cannot find a CMakeLists.txt file in the directory. I have to edit the preferences file and add the line:
In order to compile the software.
In my opinion it would be nice if cmale-tools is not able to find a CMakeLists.txt file in the root directory to recursively try to find a CMakeLists.txt in any subfolder of the project. Then asks to the user which CMakeLists.txt to use.
As a plus feature if the extension can looks inside the CMakeLists.txt in order to find a Project directive it would allow to get only the main CMakeLists.txt that drives the compilation of all the sources.
The main case is:
Using CMake for cross compile the software that runs on a custom board with different microprocessors.
The software of the different microprocessors must be in sync so it is common to use a single git repository for the sources of the different processors.
The CMakeLists could be different as could be different the toolchain file used for cross compiling.
Allowing an easy to do configuration and switch between the toolchains and the main projects would be a great thing.
In any case I think that prompting for which CMakeLists.txt to use, if present in a sub folder, allow to better interact with other plugins.
would love to ear your comments
thank you
Andrea
The text was updated successfully, but these errors were encountered: