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

CMake options for disabling specific library features. #2006



None yet
3 participants
Copy link

commented May 9, 2018

This PR adds CMake options that can be used to disable specific features.

  • CINDER_DISABLE_ANTTWEAKBAR can be used for disabling support and compilation of AntTweakBar sources when there is no requirement for a GUI through the specific library.

  • CINDER_DISABLE_AUDIO can be used for disabling audio support. With this option no audio source files will be included in the build process and no audio libraries will be part of the linking process.

  • CINDER_DISABLE_VIDEO same as above but for video support.

The motivation behind this is reduced build times in scenarios where the above features are not required.

time reports a reduced build time by ~28% on macOS through clang and by ~23% on Linux with gcc when all of these options are enabled.

Also, in the case of Linux, disabling audio or/and video features means that the user can skip the installation of the relevant library dependencies ( e.g GStreamer for video ).

@andrewfb andrewfb merged commit c65b6c3 into cinder:master Aug 5, 2018

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
continuous-integration/appveyor/pr AppVeyor build succeeded

@PetrosKataras PetrosKataras deleted the PetrosKataras:cmake-optional-dependency-disablement branch Aug 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.