D
DavidTML
Guest
Hi, I am trying to configure Visual Studio 2017 to remotely build a C++ project using CMake on a Linux machine. The build must use the Red Hat SCL compiler collection, not the default gcc compiler on the machine.
I have specified a prebuild command in CMakeSettings.json:
"remotePrebuildCommand": "source scl_source enable devtoolset-7"
I'm not sure that that will force the scl to be used. I guess the correct headers won't be downloaded to the local machine for Intellisense's used.
A similar question was asked here:
VS Linux Project - How to target different GCC versions?
The answer given was to specify the compiler in the Configuration Properties -> C/C++ -> General. But, is that only for a Visual Studio Project? i.e. not for a CMake project?
How would I specify the compiler for a CMake project?
Continue reading...
I have specified a prebuild command in CMakeSettings.json:
"remotePrebuildCommand": "source scl_source enable devtoolset-7"
I'm not sure that that will force the scl to be used. I guess the correct headers won't be downloaded to the local machine for Intellisense's used.
A similar question was asked here:
VS Linux Project - How to target different GCC versions?
The answer given was to specify the compiler in the Configuration Properties -> C/C++ -> General. But, is that only for a Visual Studio Project? i.e. not for a CMake project?
How would I specify the compiler for a CMake project?
Continue reading...