arrayfire / forge

High Performance Visualization
226 stars 48 forks source link

Consistent definition of USE_SYSTEM flags for glbinding, glm and freetype #127

Closed ghisvail closed 7 years ago

ghisvail commented 7 years ago

This PR improves the consistency between the CMake options used for optional compilation with the system libraries for glibinding, glm and freetype. These options are all standardized to USE_SYSTEM_FOO as opposed to a mixture of USE_SYSTEM_FOO and USE_LOCAL_FOO currently. The latter is actually quite confusing, since a system dependency may be considered local too.

Besides, if compilation with a system library is requested, then the configuration will systematically fail if the library is not found. By default, all USE_SYSTEM options are set to OFF but this can be adjusted to different values.