Skip to content

Commit

Permalink
Update conanfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneder89 committed Nov 25, 2022
1 parent aca06fe commit a6bb28e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/cppcheck/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a6bb28e

Please sign in to comment.