I have a main folder with multiple subfolders, each with its own project and CMakeLists.txt. When I open VSP in a specific project folder, it recognises it as a CMake project and I can configure it. When I open the “mother folder”, VSP doesn’t search for CMakeLists.txt in subdirectories and I can’t configure any project. How do I fix this?
This is not an issue in VSCode or for my colleague, who works on exactly the same files and folders. I use VSP 2022, he uses 2019.
I made the following CMakeLists.txt in the mother folder:
cmake_minimum_required(VERSION 3.20)
project(myProject)
add_subdirectory(dir1)
add_subdirectory(dir2)
add_subdirectory(dir3)
but it didn’t solve the problem.
mel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.