Skip to content

Commit bdaea45

Browse files
authored
Merge pull request #255 from wrightsg/migrate-convert-txt-add-settings
[migrate:convert-txt] initialize settings in conanfile.py
2 parents 22c5a00 + 0c48408 commit bdaea45

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

extensions/commands/migrate/cmd_convert_txt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def convert_txt(conan_api, parser, *args, **kwargs):
3232
{% endif %}
3333
3434
class Pkg(ConanFile):
35+
settings = "os", "compiler", "build_type", "arch"
3536
{% if generators %}
3637
generators ={% for g in generators %} "{{g}}",{% endfor %}
3738
{% endif %}

tests/test_convert_txt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def test_convert_txt():
5858
from conan.tools.cmake import cmake_layout
5959
6060
class Pkg(ConanFile):
61+
settings = "os", "compiler", "build_type", "arch"
6162
generators = "CMakeToolchain", "CMakeDeps",
6263
default_options = {'hello*:shared': 'True'}
6364

0 commit comments

Comments
 (0)