Fix Conan builds (#400)
Fix adding Conan setup invocation to CMakeLists.txt in conanfile.py
This commit is contained in:
parent
e96ae2203b
commit
85092b4b64
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue