-
Notifications
You must be signed in to change notification settings - Fork 27
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
Consider adding --debug and --release flags to the build command #56
Comments
That sounds like a good idea. |
This has been added to master branch. |
Hi @pfultz2, I've only just got around to trying this out on master branch (sorry it took so long!) but I'm afraid I seem to be having a bit of an issue. I have a simple project that includes one library in its requirements file. When I build the project with I've somewhat verified this with the When building with that flag, I can see that the library's However, the |
Let me look into this. |
So I pushed a fix for this on master. |
Just tested it and it works great - thanks! |
Hi,
Would it be possible to consider adding
--debug
and--release
flags to thebuild
command, similar to those that already exist forinstall
?It's of course possible that I'm trying to use
cget
wrong, but my use-case is that I'm usingcget
to build my local project (in addition to installing and building its dependencies), and I'd like to optionally build it with debug symbols occasionally.I was a bit surprised there was no
--debug
flag for thebuild
command, so as a workaround I tried passing in a custom--define CMAKE_BUILD_TYPE=Debug
to the command instead, however that also didn't work due to the issue I've detailed in #55.So for now I've resorted to simply adding a
set(CMAKE_BUILD_TYPE Debug)
line to my local package'sCMakeLists.txt
file. However this is not ideal as I would prefer to be able to toggle it within thecget
command line rather than having to edit a file.Thanks!
The text was updated successfully, but these errors were encountered: