cmake: add option to link with OpenMP
authorIvan Shapovalov <intelfx@intelfx.name>
Sun, 14 Aug 2016 01:57:22 +0000 (04:57 +0300)
committerIvan Shapovalov <intelfx@intelfx.name>
Wed, 31 Aug 2016 12:20:49 +0000 (15:20 +0300)
commitf1b9da54598923c531e1a98c4f1546169165e441
treec112f9175eedf6b25aa0abcb36a0ffc651ac1031
parent6200b915601e1f7b2ec6d4746dc143114722ec38
cmake: add option to link with OpenMP

Despite Caffe itself does not use OpenMP, explicitly linking to OpenMP
should be done when one statically links to a BLAS library which uses
OpenMP internally and does not provide proper CMake imported targets
with proper dependencies (nobody this so far).
CMakeLists.txt
cmake/Dependencies.cmake
src/caffe/CMakeLists.txt