phrocker commented on a change in pull request #2:
URL: https://github.com/apache/hbase-native-client/pull/2#discussion_r429166593



##########
File path: cmake/DownloadFolly.cmake
##########
@@ -0,0 +1,39 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+## Download facebook's folly library. 
+## SOURCE_DIR is typically the cmake source directory
+## BINARY_DIR is the build directory, typically 'build'
+
+function(download_folly SOURCE_DIR BINARY_DIR)
+
+       
+       ExternalProject_Add(
+               facebook-folly-proj
+               GIT_REPOSITORY "https://github.com/facebook/folly.git";
+               GIT_TAG "v2020.05.18.00"
+               SOURCE_DIR "${BINARY_DIR}/dependencies/facebook-folly-proj-src"
+               CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS}

Review comment:
       
![image](https://user-images.githubusercontent.com/1781585/82658131-7d049800-9bf4-11ea-9c87-804dc9d821d9.png)
   
   I had to trace my steps back but I already had libfmt-dev, which installs 
the configuration mechanism in (my case ) the cmake root module path. 
   
   Folly/Fizz/Wangle have a lot of dependencies, but if this was the only other 
one you encountered it would not be difficult to add a similar mechanism for 
installing libfmt. thanks for pointing this out.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to