mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
* Add compiler flags for MSVC on VS2017 * Force gtest to use the dynamic runtime on Windows. * Avoid setting flags that MSVC does not understand * Add compiler_id: cheap shortcuts for conditional features on a compiler * Fix googletest build under VS2017 * Force disable Abseil's tests, which don't compile under VS2017. * Make Firestore CMake a self-contained build Now shell out to a sub-CMake to prepare depenencies without needing an explciit superbuild structure. This makes the Visual Studio and CLion projects driven from the CMake configuration actually usable. * Make LevelDB an optional dependency. * Move third-party dependencies to the top-level
24 lines
756 B
CMake
24 lines
756 B
CMake
# Copyright 2018 Google
|
|
#
|
|
# Licensed 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.
|
|
|
|
# Adds cheap tests for various compilers
|
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
set(CXX_CLANG TRUE)
|
|
endif()
|
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
set(CXX_GNU TRUE)
|
|
endif()
|