go2sh / cmake-integration-vscode

CMake Server Interface for VSCode.
https://go2sh.github.io/cmake-integration-vscode/
Other
19 stars 11 forks source link

toolchain option not working properly #52

Closed hjesuiter closed 4 years ago

hjesuiter commented 4 years ago

Hi,

The last update to 0.7.0 ignores the toolchain-setting, where I usually give a specific toolchain file to my cmake configurations. In 0.6.5 it works fine, so probably there are some changes there I'm not aware of.

My setup: connect to a remote machine that hosts the projects code and does (cross-) builds. The project contains several CMAKE toolchain files depending on the target platform. My configuration looks like (multiple times for different platforms): { "name": "COMi.MX Debug", "buildType": "Debug", "buildDirectory": "${workspaceFolder}/build/comimx/${buildType}", "toolchain": "${workspaceFolder}/cmake/poky_toolchain-arm-imx.cmake", "cacheEntries": [ { "name": "RV_RTP_FPGA_COMIMX", "value": "1", "type": "BOOL" }, { "name": "RV_PTP", "value": "linuxptp", "type": "STRING" } ] },

While in 0.6.5 the toolchain file is properly found and used (settings für compiler, libraries and paths), in 0.7.0 this doesn't work anymore. Instead it tries to use the defaults (i.e. /usr/bin/cc instead of (crosstoolchain/architecture/cc). Do I have to update the config somewhere?

hriekehof commented 4 years ago

I should have read this first :) I have the same issue #53

go2sh commented 4 years ago

Ach mist. Sorry, i'll check it out tonight.