Changeset View
Changeset View
Standalone View
Standalone View
src/leveldb/CMakeLists.txt
# Copyright 2017 The LEVELDB Authors. All rights reserved. | # Copyright 2017 The LEVELDB Authors. All rights reserved. | ||||
# Use of this source code is governed by a BSD-style license that can be | # Use of this source code is governed by a BSD-style license that can be | ||||
# found in the LICENSE file. See the AUTHORS file for names of contributors. | # found in the LICENSE file. See the AUTHORS file for names of contributors. | ||||
cmake_minimum_required(VERSION 3.1) | cmake_minimum_required(VERSION 3.5) | ||||
project(Leveldb VERSION 0.1.0 LANGUAGES C CXX) | project(Leveldb VERSION 0.1.0 LANGUAGES C CXX) | ||||
# This project can take advantage of C++11. | # This project can take advantage of C++11. | ||||
set(CMAKE_CXX_STANDARD 11) | set(CMAKE_CXX_STANDARD 11) | ||||
# Remove some warnings for leveldb as they can get noisy. | # Remove some warnings for leveldb as they can get noisy. | ||||
add_compiler_flag(-Wno-sign-compare -Wno-implicit-fallthrough) | add_compiler_flag(-Wno-sign-compare -Wno-implicit-fallthrough) | ||||
add_c_compiler_flag(-Wno-strict-prototypes) | add_c_compiler_flag(-Wno-strict-prototypes) | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |