Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching between debug and release #13

Open
dpronin opened this issue Mar 26, 2020 · 1 comment
Open

Switching between debug and release #13

dpronin opened this issue Mar 26, 2020 · 1 comment

Comments

@dpronin
Copy link

dpronin commented Mar 26, 2020

Hi,
I have used your package for a long time, thank you for the work done

I have had an issue, or question, torturing me all the way. Is there a way to switch between different multiple cmakebuilder's configurations for a user's project? For example, I have a Debug and a Release those must be configured differently, the first configuration has to be fed by -DCMAKE_BUILD_TYPE=Debug and the second with -DCMAKE_BUILD_TYPE=Release. Now I cannot specify different configurations for your package in one .sublime-project file, I have to create as many .sublime-project files as number of configurations, meanwhile for sublime text build_systems it is possible to switch among them (Tools -> Build Systems) when you're specifying them in one '.sublime-project' file

Thank you

@rwols
Copy link
Owner

rwols commented Mar 27, 2020

Perhaps this problem can be solved by using a multi-config generator. The newest cmake (3.17) ships with a "ninja multi config" generator, see: https://cmake.org/cmake/help/v3.17/generator/Ninja%20Multi-Config.html

I haven't experimented with multi configuration generators other than visual studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants