Fix Conan builds (#400)

Fix adding Conan setup invocation to CMakeLists.txt in conanfile.py
This commit is contained in:
Adrian Ostrowski 2019-11-12 21:17:48 +01:00 committed by Andy Getz
parent e96ae2203b
commit 85092b4b64

View file

@ -30,7 +30,7 @@ class AbseilConan(ConanFile):
raise ConanInvalidConfiguration("Abseil does not support MSVC < 14")
def build(self):
tools.replace_in_file("CMakeLists.txt", "project(absl)", "project(absl)\ninclude(conanbuildinfo.cmake)\nconan_basic_setup()")
tools.replace_in_file("CMakeLists.txt", "project(absl CXX)", "project(absl CXX)\ninclude(conanbuildinfo.cmake)\nconan_basic_setup()")
cmake = CMake(self)
cmake.definitions["BUILD_TESTING"] = False
cmake.configure()