From 85092b4b648ca729c6263c4a302a41dfff28705e Mon Sep 17 00:00:00 2001 From: Adrian Ostrowski Date: Tue, 12 Nov 2019 21:17:48 +0100 Subject: [PATCH] Fix Conan builds (#400) Fix adding Conan setup invocation to CMakeLists.txt in conanfile.py --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index cd124aae..926ec5cc 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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()