Merge pull request #85 from bitomaxsp:patch-1

PiperOrigin-RevId: 279633518
This commit is contained in:
Victor Costan 2019-11-10 14:10:50 -08:00
commit 26410cc4f8
1 changed files with 7 additions and 4 deletions

View File

@ -29,10 +29,13 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(Snappy VERSION 1.1.7 LANGUAGES C CXX) project(Snappy VERSION 1.1.7 LANGUAGES C CXX)
# This project requires C++11. # C++ standard can be overridden when this is used as a sub-project.
set(CMAKE_CXX_STANDARD 11) if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD_REQUIRED ON) # This project requires C++11.
set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif(NOT CMAKE_CXX_STANDARD)
# BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make
# it prominent in the GUI. # it prominent in the GUI.