Skip to content

Commit

Permalink
makefile-project-workspace-creator: Conan v1 does not support visible…
Browse files Browse the repository at this point in the history
…=True
  • Loading branch information
valgur committed Nov 6, 2023
1 parent 76ab3d5 commit 64be108
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/makefile-project-workspace-creator/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from conan import ConanFile
from conan import ConanFile, conan_version
from conan.tools.files import copy, get
from conan.tools.layout import basic_layout

Expand All @@ -23,7 +23,8 @@ def layout(self):

def build_requirements(self):
if self.settings.os == "Windows":
self.tool_requires("strawberryperl/5.32.1.1", visible=True)
kwargs = dict(visible=True) if conan_version.major >= 2 else {}
self.tool_requires("strawberryperl/5.32.1.1", **kwargs)

def package_id(self):
del self.info.settings.compiler
Expand Down

0 comments on commit 64be108

Please sign in to comment.