Fixup CMake file to allow inclusion via add_subdirectory() in Cobalt.
We are incorporating lossmin into the Cobalt build via
an add_subdirectory() clause in the top-level CMake file.
We found we needed to make these changes for that to succeed.
Change-Id: Ie7f337538b6db00ee299a197e7c132458c15a843
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b511db..f458476 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,19 +3,9 @@
# found in the LICENSE file.
cmake_minimum_required (VERSION 2.8.10)
-
-# The only way we found to override the compiler is setting these variables
-# prior to the project definition. Otherwise enable_language() sets these
-# variables and gcc will be picked up instead. Also, new versions of cmake will
-# complain if one compiler is first set (say to gcc via enable_language), and
-# then we later switch it to (say) clang.
-SET (CMAKE_C_COMPILER "clang")
-SET (CMAKE_CXX_COMPILER "clang++")
-
project(lossmin)
-
-SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -std=c++11 -stdlib=libstdc++ -fcolor-diagnostics")
+SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare")
enable_language(C)
enable_language(CXX)