lszl84 / wx_cmake_template

A template for multiplatform WxWidgets projects using CMake
MIT License
143 stars 50 forks source link

VS code issues when VS code libraries are already installed #9

Open undeadindustries opened 1 year ago

undeadindustries commented 1 year ago

This is on MacOS.

I already had WxWidgets installed before I cloned your repo.

For these lines: "${workspaceFolder}/build/stage/include/wx-3.1/", "${workspaceFolder}/build/subprojects/Build/wxWidgets_external/lib/wx/include/osx_cocoa-unicode-static-3.1/"

I get "Cannot find" errors. Probably because cmake didn't think Wx needed to be downloaded? But it does need to be downloaded for VS code to work as an ide right? meaning, for it to autocomplete and display proper errors?

Because of that also, I get a wx.h not found error too. It's asking me to update Intellisense with proper include folders. But cmake should handle that, right?

In command prompt, the code compiles fine.

Any help is appreciated. Thanks!