aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Gozhiy <anton5813@gmail.com>2019-03-15 13:02:23 +0200
committerSorabh Hamirwasia <sorabh@apache.org>2019-03-15 10:13:54 -0700
commita72f1700a8d260a2f92ba8955c77df6428feb919 (patch)
tree23f7ebbbc36c5811af9a7ef8bc0fa92ac7e01bd0
parentd69af973d1b91f71dd6314d01dd9399b1f7b9016 (diff)
downloaddrill-a72f1700a8d260a2f92ba8955c77df6428feb919.tar.gz
DRILL-7105: Error while building the Drill native client
Added a compiler option in CMakeLists.txt to support the ISO C++ 2011 standard. Also, changed the CMake min version to 3.1.3 to match the min version specified in protobuf. closes #1697
-rw-r--r--contrib/native/client/CMakeLists.txt5
-rw-r--r--contrib/native/client/readme.linux2
-rw-r--r--contrib/native/client/readme.macos2
3 files changed, 6 insertions, 3 deletions
diff --git a/contrib/native/client/CMakeLists.txt b/contrib/native/client/CMakeLists.txt
index f434c4102..02834b955 100644
--- a/contrib/native/client/CMakeLists.txt
+++ b/contrib/native/client/CMakeLists.txt
@@ -15,7 +15,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.1.3)
+
+set (CMAKE_CXX_STANDARD 11)
+set (CMAKE_CXX_STANDARD_REQUIRED ON)
project(drillclient)
cmake_policy(SET CMP0043 NEW)
diff --git a/contrib/native/client/readme.linux b/contrib/native/client/readme.linux
index dab002322..1ca2846fd 100644
--- a/contrib/native/client/readme.linux
+++ b/contrib/native/client/readme.linux
@@ -24,7 +24,7 @@ Install Prerequisites
0) Install development tools
$>yum groupinstall 'Development Tools'
-1) CMAKE 3.0
+1) CMAKE 3
$> yum install cmake3
2.1) Download protobuf 3.6 from :
diff --git a/contrib/native/client/readme.macos b/contrib/native/client/readme.macos
index ccee80668..a3edd6905 100644
--- a/contrib/native/client/readme.macos
+++ b/contrib/native/client/readme.macos
@@ -28,7 +28,7 @@ Install Prerequisites
0.2) Install brew following the instructions here: http://brew.sh/
-1) CMAKE 3.0 or above
+1) CMAKE 3.1.3 or above
Download and install Cmake : https://cmake.org/download/
or use brew to install
$> brew install cmake