diff --git a/CMakeUserPresets.json b/CMakeUserPresets.json index c39f928..4b6b288 100644 --- a/CMakeUserPresets.json +++ b/CMakeUserPresets.json @@ -4,6 +4,7 @@ "conan": {} }, "include": [ - "build_Debug/build/Debug/generators/CMakePresets.json" + "build_Debug/build/Debug/generators/CMakePresets.json", + "build/Release/generators/CMakePresets.json" ] } \ No newline at end of file diff --git a/conanfile.py b/conanfile.py index f2278e0..6207be2 100644 --- a/conanfile.py +++ b/conanfile.py @@ -6,7 +6,7 @@ from conan.tools.cmake import cmake_layout class FoldingConan(ConanFile): name = "folding" - version = "X.X.X" + version = "1.1.1" description = "K-Fold and stratified K-Fold header-only library" url = "https://github.com/rmontanana/folding" license = "MIT" @@ -30,16 +30,6 @@ class FoldingConan(ConanFile): def layout(self): cmake_layout(self) - def init(self): - # Read the CMakeLists.txt file to get the version - with open("folding.hpp", "r") as f: - content = f.read() - match = re.search( - r'const std::string FOLDING_VERSION = "([^"]+)";', content - ) - if match: - self.version = match.group(1) - def package(self): copy(self, "*.hpp", src=self.source_folder, dst=self.package_folder)