From df71c9ad8c2751672b8ae85915cc7f74f3db08c8 Mon Sep 17 00:00:00 2001 From: Gil Date: Tue, 16 Jan 2018 10:17:27 -0800 Subject: Enable warnings in the CMake build (#669) * Enable warnings when building with GCC or clang * Fix warnings --- Firestore/CMakeLists.txt | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'Firestore/CMakeLists.txt') diff --git a/Firestore/CMakeLists.txt b/Firestore/CMakeLists.txt index 4e009e0..553f59c 100644 --- a/Firestore/CMakeLists.txt +++ b/Firestore/CMakeLists.txt @@ -36,27 +36,12 @@ if(APPLE) find_package(FirebaseCore REQUIRED) endif() -# We use C++11 -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_CXX_EXTENSIONS OFF) +enable_testing() +add_subdirectory(third_party/abseil-cpp) + +include(CompilerSetup) # Fully qualified imports, project wide include_directories(${FIREBASE_SOURCE_DIR}) -if(APPLE) - # CMake has no special support for Objective-C as a distinct language but enabling modules and - # other clang extensions would apply even to regular C++ sources which is nonportable. Keep these - # flags separate to avoid misuse. - set( - OBJC_FLAGS - -fobjc-arc - -fmodules - -fno-autolink - -F${FIREBASE_INSTALL_DIR}/Frameworks - ) -endif(APPLE) - -enable_testing() -add_subdirectory(third_party/abseil-cpp) add_subdirectory(core) -- cgit v1.2.3