CMake: Add option to link against system-wide Gflags library
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 21 Apr 2017 08:58:01 +0000 (10:58 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 21 Apr 2017 10:01:27 +0000 (12:01 +0200)
commitc7a5c48cbad0062c55bf9fa6df2926646b2c3091
treed53c082e2c1d58bea374017f435269ccc2892e7d
parent55a3d48046377444a3c36ffe7a6164030d447f6f
CMake: Add option to link against system-wide Gflags library

It is disabled by default, so should not affect existing configurations.

Main benefits of this goes as:

- Linux distros can use that to avoid libraries duplication and link
  blender package against gflags package from the system.

- It it easier to test whether Blender works with updated version of
  Gflags prior to re-bundling the library.
14 files changed:
CMakeLists.txt
build_files/cmake/Modules/FindGflags.cmake [new file with mode: 0644]
build_files/cmake/Modules/GTestTesting.cmake
build_files/cmake/macros.cmake
extern/CMakeLists.txt
intern/cycles/app/CMakeLists.txt
intern/cycles/cmake/external_libs.cmake
intern/libmv/CMakeLists.txt
intern/libmv/bundle.sh
intern/libmv/intern/logging.cc
source/blenderplayer/CMakeLists.txt
tests/gtests/CMakeLists.txt
tests/gtests/testing/CMakeLists.txt
tests/gtests/testing/testing_main.cc