On 3 September 2015 at 19:48, Michael Jackson <mike.jack...@bluequartz.net> wrote:
> I have compiled the Protocol Buffer library on OS X and I am using the > following CMake code to try and find the compiled libraries: > > find_package(Protobuf REQUIRED) > > > but when configuring I get the usual > > CMake Error: The following variables are used in this project, but they > are set to NOTFOUND. > Please set them or make sure they are set and tested correctly in the > CMake files: > PROTOBUF_LIBRARY (ADVANCED) > > Looking at the FindProtobuf.cmake file that came with CMake 3.3.0 it looks > like the module would ONLY work with MSVC built Protobuf libraries as the > specific paths that are searched for are Visual Studio specific. Is this > the correct behavior? Does anyone else use Protobuffers on OS X? I am > thinking of rolling my on FindProtobuf.cmake file to have cmake look in > more places. > > --- > Mike Jackson > > -- Which version of Protobuf did you compile? if it's the last version (3.x alpha or beta) then it is not compatible with the currently provided findprotobuf module. See comments in this issue: http://public.kitware.com/Bug/view.php?id=14833 And the related ticket: https://github.com/google/protobuf/issues/578
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake