Skip to content

Issue when building with cmake tools compared to cmake in console #2283

Closed Answered by bobbrow
dgg80 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm missing some information. When you build in the terminal, what command do you use to generate the unix makefiles? (e.g. I'm looking for the command that includes -G "Unix Makefiles"). This is where I expect your compiler to be set and it's possible that the extension is attempting to build with a different compiler. If you let cmake figure this out for you, you'd want to select an [Unspecified] Kit in the status bar.

Otherwise, you'd want to select the Kit that matches what you're setting for CMAKE_C_COMPILER and CMAKE_CXX_COMPILER.

If that's not it, you can inspect the cmake commands that we're invoking for you using these new VS Code commands:

You can share the output of those com…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dgg80
Comment options

@dgg80
Comment options

Answer selected by bobbrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants