The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=14515 ====================================================================== Reported By: icando Assigned To: ====================================================================== Project: CMake Issue ID: 14515 Category: CMake Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2013-10-28 05:20 EDT Last Modified: 2013-10-28 05:20 EDT ====================================================================== Summary: Add variable PROTOBUF_ROOT to FindProtobuf.cmake Description: FindProtobuf.cmake doesn't allow specifying non-standard install location for protobuf. It would be nice to add a variable PROTOBUF_ROOT that tells FindProtobuf.cmake to look into the directory.
My current workaround is to use CMAKE_FIND_ROOT_PATH. I need to first backup CMAKE_FIND_ROOT_PATH, set it to PROTOBUF_ROOT (I passed it in throught -DPROTOBUF_ROOT=xxxx), call find_package, then restore it. This is ugly and it would be cleaner to let FindProtobuf.cmake handle the variable (by adding it to HINTS when using find_library). Thanks. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-10-28 05:20 icando New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
