Skip to content

Commit d550712

Browse files
committed
[RSDK-10385] Don't enforce compiler minima or complain about warnings for conan builds
1 parent ab65119 commit d550712

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

conanfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ def generate(self):
6565
tc.cache_variables["VIAMCPPSDK_OFFLINE_PROTO_GENERATION"] = self.options.offline_proto_generation
6666
tc.cache_variables["VIAMCPPSDK_USE_DYNAMIC_PROTOS"] = True
6767

68+
# We don't want to constrain these for conan builds because we
69+
# don't know the context where we might be being built. We
70+
# should permit the build if it works. Also, even the C++ SDK
71+
# is warnings clean on the modern compilers we use in CI, it,
72+
# or headers from its dependencies, might throw warnings with
73+
# older compilers, and we should still allow a build there.
74+
tc.cache_variables["VIAMCPPSDK_ENFORCE_COMPILER_MINIMA"] = False
75+
tc.cache_variables["VIAMCPPSDK_USE_WALL_WERROR"] = False
76+
6877
tc.cache_variables["VIAMCPPSDK_BUILD_TESTS"] = False
6978
tc.cache_variables["VIAMCPPSDK_BUILD_EXAMPLES"] = False
7079

0 commit comments

Comments
 (0)