Skip to content

Commit

Permalink
Use self.settings.build_type instead of hardcoded Debug/Release
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoffere committed Apr 28, 2023
1 parent 663da5d commit 7ab93a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def build(self):
def package(self):
cmake = CMake(self)
cmake.install()
copy(self, "*.dll", os.path.join(self.build_folder, "Debug"), os.path.join(self.package_folder, "bin"))
copy(self, "*.dll", os.path.join(self.build_folder, "Release"), os.path.join(self.package_folder, "bin"))
copy(self, "*.dll", os.path.join(self.build_folder, str(self.settings.build_type)), os.path.join(self.package_folder, "bin"))

def package_info(self):
if self.options.shared:
Expand Down

0 comments on commit 7ab93a1

Please sign in to comment.