[opus] Opus cmake build

Cristian Adam cristian.adam at gmail.com
Thu Apr 11 07:30:03 UTC 2019

On Wed, Apr 10, 2019 at 5:30 PM Marcus Asteborg <xnorpx at outlook.com> wrote:

> Hi Mark,
> Thanks for the feedback.
> By default CMake is building the static library in debug, to get other
> things one has to explicit turn it on.

By default CMake uses the "empty" build, which is used in combination with
the environment variables CFLAGS and CXXFLAGS.

This build type is targeted at Linux distributions which want to use the
same compiler flags for multiple packages.

If you want to change the default build type to something else when
CMAKE_BUILD_TYPE is empty, make sure that you do that when $ENV{CFLAGS} and
$ENV{CXXFLAGS} are not set.

There is a blog entry at Kitware
https://blog.kitware.com/cmake-and-the-default-build-type/ on this topic.
Unfortunately it doesn't address the  CFLAGS, CXXFLAGS issue. I guess one
can combine the both and have an optimal solution.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20190411/5f447fce/attachment.html>

More information about the opus mailing list