Visual Studio Community 2019 and CMake project.

BlinnayaMashina 1 Reputation point
2021-11-07T03:46:26.073+00:00

Hello.

Im trying to add my CMake project to MSV2019C, but i have two issues:

  1. I cant compile from Build menu, have BuildAll only.
    What i see in guides
    What i have
    1. Compiler errors and warnings doesnt display in "Error list" box, It is completly clear, but error presents in "Output" box.
    2. I cant open CMake project as part of "MVS solution". It always opens like folder. If im try to open when the solution is opened - solution is closing automatically, same if im trying to add new "CMake" project.
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,381 Reputation points
    2021-11-08T03:56:55.553+00:00

    Hi, @BlinnayaMashina

    Welcome to Microsoft Q&A!

    Have you checked these two options in the error list window?
    147202-image.png

    I cant open CMake project as part of "MVS solution". It always opens like folder. If im try to open when the solution is opened - solution is closing automatically, same if im trying to add new "CMake" project.

    147203-image.png

    The Solution Explorer displays the folder structure and files. You can refer to CMake projects in Visual Studio.

    Sincerely,
    Peng
    *
    If you have extra questions about this answer, please click "Comment". If the answer is the right solution, please click "Accept Answer" and kindly upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.