From 2cd144157df463b9d713068b2715807427be983f Mon Sep 17 00:00:00 2001 From: Colin Graf Date: Sat, 12 Oct 2024 08:38:08 +0200 Subject: [PATCH] Use cmake_layout --- .gitignore | 1 + conanfile.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3902b90..d5e1f15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.vscode/ /build/ +CMakeUserPresets.json diff --git a/conanfile.py b/conanfile.py index c09e641..eab259a 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,5 +1,5 @@ from conan import ConanFile -from conan.tools.cmake import CMake, CMakeToolchain +from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout from conan.tools.env import VirtualBuildEnv from conan.tools.files import load import re, os @@ -36,6 +36,9 @@ def package(self): cmake = CMake(self) cmake.install() + def layout(self): + cmake_layout(self) + def package_info(self): self.cpp_info.set_property("cmake_find_mode", "none") self.cpp_info.builddirs.append(os.path.join("lib", "cmake", "mingtest"))