Browse Source

Define default profiles to be used

TODO: Check if this compiles correctly on Windows

Contributes to CURA-9365
fix_tk_recipe_env_info
j.spijker@ultimaker.com 4 years ago committed by jspijker
parent
commit
17f3314318
  1. 15
      conan.conf
  2. 2
      profiles/cura.jinja
  3. 5
      profiles/cura_debug.jinja
  4. 5
      profiles/cura_release.jinja

15
conan.conf

@ -5,14 +5,10 @@ level = critical # environment CONAN_LOGGING_LEVEL
print_run_commands = True # environment CONAN_PRINT_RUN_COMMANDS
[general]
default_profile = cura_release.jinja
default_build_profile = cura_build.jinja
required_conan_version = >=1.48
scm_to_conandata = True
revisions_enabled = True
[conf]
env.virtualenv:auto_use = True
[storage]
@ -20,3 +16,14 @@ env.virtualenv:auto_use = True
[hooks]
attribute_checker
[core]
default_build_profile = cura_build.jinja
default_profile = cura_release.jinja
required_conan_version = >=1.48
[tools]
env.virtual:auto_use = True
cmake.cmaketoolchain:generator = Ninja
cmake.cmaketoolchain:find_package_prefer_config = True
gnu:define_libcxx11_abi = True

2
profiles/cura.jinja

@ -15,6 +15,4 @@ compiler.cppstd=17
[env]
[conf]
tools.cmake.cmaketoolchain:find_package_prefer_config=True
{% if platform.system() == 'Windows' %}tools.env.virtualenv:powershell=True{% endif %}
{% if compiler == 'Visual Studio' %}tools.microsoft.msbuild:vs_version=compiler.version{% endif %}

5
profiles/cura_debug.jinja

@ -1,5 +0,0 @@
include(cura.jinja)
[settings]
build_type=Debug
{% if compiler == 'Visual Studio' %}compiler.runtime=MDd{% endif %}

5
profiles/cura_release.jinja

@ -1,5 +0,0 @@
include(cura.jinja)
[settings]
build_type=Release
{% if compiler == 'Visual Studio' %}compiler.runtime=MD{% endif %}
Loading…
Cancel
Save