aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci/dirs.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-18 14:39:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-18 14:46:35 +0300
commit00d21c8d6d202375761f332084e01661241376a9 (patch)
tree79c6cc2e03ecfbadee367362e7277af0444b3237 /project/ci/dirs.py
parentREADME: update (diff)
downloadcmake-common-00d21c8d6d202375761f332084e01661241376a9.tar.gz
cmake-common-00d21c8d6d202375761f332084e01661241376a9.zip
project.ci: --install picks the directory automatically
Diffstat (limited to '')
-rw-r--r--project/ci/dirs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project/ci/dirs.py b/project/ci/dirs.py
index 5bfedda..4e61015 100644
--- a/project/ci/dirs.py
+++ b/project/ci/dirs.py
@@ -42,6 +42,9 @@ class Dirs(abc.ABC):
def get_cmake_dir(self):
return os.path.join(self.get_build_dir(), 'build')
+ def get_install_dir(self):
+ return os.path.join(self.get_build_dir(), 'install')
+
@abc.abstractmethod
def get_cmake_args(self):
pass
@@ -61,7 +64,7 @@ Boost is built in {self.get_boost_dir()}.
This is similar to running project.cmake.build, but auto-fills some parameters
from environment variables.
-The project is built in {self.get_cmake_dir()}.
+The project is built in {self.get_cmake_dir()} and installed to {self.get_install_dir()}.
'''