Juan Leni
Juan Leni

Reputation: 7578

Visual Studio 2017 - Disable CMake for dependencies

I have a Visual Studio 2017 Solution that has some header-only dependencies that are multiplatform and use CMake.

I do not need CMake at all, but I keep getting a lot of warnings and issues because Visual Studio 2017 insists on using CMake, exploring these projects, etc.

Is there a way to completely disable the CMake feature for this solution/project?

Update:


For instance:

Upvotes: 1

Views: 2366

Answers (2)

fdk1342
fdk1342

Reputation: 3554

Don't open the CMakeLists.txt with File->Open->CMake. Choose File->Open->File. You can also try to uninstall the visual studio c++ tools for cmake portion of Visual Studio 2017 via the installation tool.

Upvotes: 1

user2261597
user2261597

Reputation:

In Solution Explorer, locate CMakeLists.txt, right-click it. Select Custom Build Tool->General. Erase everything from there. Make sure you have a backup just in case ...

Upvotes: 1

Related Questions