Skip to content

Commit

Permalink
Standardize cmake files in lib/cmake dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tarc committed Jun 26, 2020
1 parent ea0efa2 commit a7c6d21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/mfast/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from conans import ConanFile, CMake, tools
import os
import shutil


class mFASTConan(ConanFile):
Expand Down Expand Up @@ -55,6 +56,11 @@ def package(self):
cmake = self._configure_cmake()
cmake.install()
self.copy("licence.txt", dst="licenses", src=self._source_subfolder)
if self.settings.os == "Windows":
shutil.move(os.path.join(self.package_folder, "CMake"),
os.path.join(self.package_folder, "lib", "cmake", "CMake"))
os.rename(os.path.join(self.package_folder, "lib", "cmake", "CMake"),
os.path.join(self.package_folder, "lib", "cmake", "mFAST"))
os.rename(os.path.join(self.package_folder, "lib", "cmake", "mFAST", "mFASTConfig.cmake"),
os.path.join(self.package_folder, "lib", "cmake", "mFAST", "mFASTTools.cmake"))
tools.rmdir(os.path.join(self.package_folder, "share"))
Expand Down

0 comments on commit a7c6d21

Please sign in to comment.