Fix Conan builds (#400)

Fix adding Conan setup invocation to CMakeLists.txt in conanfile.py
pull/298/head^2
Adrian Ostrowski 5 years ago committed by Andy Getz
parent e96ae2203b
commit 85092b4b64
  1. 2
      conanfile.py

@ -30,7 +30,7 @@ class AbseilConan(ConanFile):
raise ConanInvalidConfiguration("Abseil does not support MSVC < 14") raise ConanInvalidConfiguration("Abseil does not support MSVC < 14")
def build(self): 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 = CMake(self)
cmake.definitions["BUILD_TESTING"] = False cmake.definitions["BUILD_TESTING"] = False
cmake.configure() cmake.configure()

Loading…
Cancel
Save