[arch-dev-public] RFC: Dropping -DCMAKE_BUILD_TYPE from packages using cmake
Bruno Pagani
bruno.n.pagani at gmail.com
Tue Mar 13 13:07:31 UTC 2018
Le 13/03/2018 à 13:42, Antonio Rojas via arch-dev-public a écrit :
> El martes, 13 de marzo de 2018 11:23:07 (CET) Bruno Pagani via arch-dev-public escribió:
>> Some projects seems to default to Debug instead of None… So should we
>> specify a BUILD_TYPE of None instead of Release?
>>
> Not sure if it's a good idea to systematically override the build type when it has been explicitely set by upstream. Some projects may be doing so for good reasons. Although explicitely setting it to Debug in a release tarball seems odd, do you have any example of such a project?
The one I had in mind:
https://github.com/Unidata/netcdf-c/blob/master/CMakeLists.txt#L122
Release tarball is the same, they don’t change anything w.r.t. CMake in
release tarball. Maybe it’s just one project and all other Arch Linux
packages are not affected, but dropping BUILD_TYPE automatically at repo
scale does not seems a good idea. I would prefer a todo list with
instructions on checking what BUILD_TYPE and more importantly FLAGS
where actually used by the build, even if I know you would rather have
avoided one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 520 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-dev-public/attachments/20180313/f8ca0f1b/attachment.asc>
More information about the arch-dev-public
mailing list