Skip to content

Commit

Permalink
Fix Conan builds (abseil#400)
Browse files Browse the repository at this point in the history
Fix adding Conan setup invocation to CMakeLists.txt in conanfile.py
  • Loading branch information
aostrowski authored and suertreus committed Nov 12, 2019
1 parent e96ae22 commit 85092b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def configure(self):
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()
Expand Down

0 comments on commit 85092b4

Please sign in to comment.