-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Add cmakeBuildType and dontAddCmakeBuildType variables to be able to make Debug builds. #17828
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,13 @@ cmakeConfigurePhase() { | |
|
|
||
| # Avoid cmake resetting the rpath of binaries, on make install | ||
| # And build always Release, to ensure optimisation flags | ||
| cmakeFlags="-DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" | ||
| cmakeFlags="-DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" | ||
|
|
||
| if [ -n "$cmakeBuildType" ]; then | ||
| cmakeFlags="-DCMAKE_BUILD_TYPE=$cmakeBuildType $cmakeFlags" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If one appends |
||
| elif [ -z "dontAddBuildType" ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should read A little bikeshedding here: could we call this |
||
| cmakeFlags="-DCMAKE_BUILD_TYPE=Release $cmakeFlags" | ||
| fi | ||
|
|
||
| echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}" | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is now off