Git Product home page Git Product logo

cmakesettings's Introduction

Welcome

This repository contains examples of different CMakeSettings.json for use inside of Visual Studio's Open Folder.

Feel free to add your own CMakeSettings.json for specific scenarios you are interested in sharing. The general format is

  • Directory
    • Readme.md - description of your settings
    • CMakeSettings.json - your custom settings

More information

For more information on CMakeSettings.json see these:

https://docs.microsoft.com/en-us/cpp/ide/cmake-tools-for-visual-cpp#cmake_settings

https://docs.microsoft.com/en-us/cpp/linux/cmake-linux-project

https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/#configure-cmake

https://blogs.msdn.microsoft.com/vcblog/2017/08/14/cmake-support-in-visual-studio-customizing-your-environment/

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

cmakesettings's People

Contributors

bitwiser73 avatar jgoshi avatar microsoftopensource avatar msftgits avatar rchiodo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmakesettings's Issues

mingw64

Hi,

regarding CmakeSettings/mingw64/CMakeSettings.json.

That is exactly hardcoded into Visual Studio if I have a project without CMakeSettings.json and then choose
"Change CMake Settings"-> Mingw64-Debug

Change CMake Settings

it creates a CMakeSettings.json

Problem is:
that CMakeSettings.json has
"TOOLSET_VERSION" hardcoded to "7.3.0" and then used in line 12

"INCLUDE": \
"${env.INCLUDE};\
${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION};\
${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\tr1;\
${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\${env.FLAVOR}"

// corresponding to 
//C:\msys64\mingw64\include\c++\7.3.0
//C:\msys64\mingw64\include\c++\7.3.0\tr1
//C:\msys64\mingw64\include\c++\7.3.0\x86_64-w64-mingw32

Well I regularly update msys2 with command pacman -Syuu, and currently TOOLSET_VERSION of mingw64 is no longer 7.3.0, but instead 8.2.1:

C:\msys64\mingw64\include\c++\8.2.1
C:\msys64\mingw64\include\c++\8.2.1\tr1
C:\msys64\mingw64\include\c++\8.2.1\x86_64-w64-mingw32

Thus questions: is there any way that Visual Studio can autodetect this? (I guess the only way is for me to set an environment variable (globally, outside of Visual Studio), and then reference it)

Oh and what does that INCLUDE environment variable do anyway? Is it necessary at all?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.