mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
[Conan] generate all configs by default
env var change: USE_CONAN_WITH_ALL_CONFIGS -> GENERATE_ONLY_BUILT_CONFIG
This commit is contained in:
parent
cf34c8da56
commit
c1ef07a5e4
2
.github/workflows/github.yml
vendored
2
.github/workflows/github.yml
vendored
@ -138,6 +138,8 @@ jobs:
|
||||
--profile:build=default \
|
||||
--profile:host=CI/conan/${{ matrix.conan_profile }} \
|
||||
--options with_apple_system_libs=True
|
||||
env:
|
||||
GENERATE_ONLY_BUILT_CONFIG: 1
|
||||
|
||||
- name: Git branch name
|
||||
id: git-branch-name
|
||||
|
@ -4,8 +4,6 @@ from conan.tools.apple import is_apple_os
|
||||
from conan.tools.cmake import CMakeDeps, CMakeToolchain
|
||||
from conans import tools
|
||||
|
||||
import os
|
||||
|
||||
required_conan_version = ">=1.51.3"
|
||||
|
||||
class VCMI(ConanFile):
|
||||
@ -197,7 +195,7 @@ class VCMI(ConanFile):
|
||||
tc.generate()
|
||||
|
||||
deps = CMakeDeps(self)
|
||||
if os.getenv("USE_CONAN_WITH_ALL_CONFIGS", "0") == "0":
|
||||
if tools.get_env("GENERATE_ONLY_BUILT_CONFIG", default=False):
|
||||
deps.generate()
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user