From a6bb28eb3840bc90a2d10e6096d4a6902ab03974 Mon Sep 17 00:00:00 2001 From: Sneder89 <45610045+Sneder89@users.noreply.github.com> Date: Fri, 25 Nov 2022 09:58:20 +0100 Subject: [PATCH] Update conanfile.py --- recipes/cppcheck/all/conanfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/cppcheck/all/conanfile.py b/recipes/cppcheck/all/conanfile.py index 7993fa29467da..f11ea170ff55d 100644 --- a/recipes/cppcheck/all/conanfile.py +++ b/recipes/cppcheck/all/conanfile.py @@ -1,4 +1,5 @@ from conan import ConanFile +from conan.tools.apple import is_apple_os from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir from conan.tools.scm import Version @@ -47,7 +48,8 @@ def generate(self): tc.variables["HAVE_RULES"] = self.options.have_rules tc.variables["USE_MATCHCOMPILER"] = "Auto" tc.variables["ENABLE_OSS_FUZZ"] = False - tc.variables["FILESDIR"] = os.path.join(self.package_folder, "bin", "cfg") + if is_apple_os(self): + tc.variables["FILESDIR"] = os.path.join(self.package_folder, "bin", "cfg") tc.generate() deps = CMakeDeps(self)