aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci/appveyor/cmake.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-28 17:19:43 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-28 17:23:15 +0000
commit70da99e4f70845da37ae368c4788ecc18546792d (patch)
tree51f50290e2ea926350c88fa5fa0e8d4d2ad426fa /project/ci/appveyor/cmake.py
parentcommon.cmake: account for ALIAS targets (diff)
downloadcmake-common-70da99e4f70845da37ae368c4788ecc18546792d.tar.gz
cmake-common-70da99e4f70845da37ae368c4788ecc18546792d.zip
WIP: restructure
A stupid attempt to reduce code duplication led me to believe that all the scripts could use _a bit_ of refactoring. This is going to be a major pain (factoring out all the things), which I'll take gladly. All the links and usage examples are broken right now, but nobody cares, so whatevs.
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]project/ci/appveyor/cmake.py (renamed from cmake/build/ci/appveyor.py)7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmake/build/ci/appveyor.py b/project/ci/appveyor/cmake.py
index b9141ec..e1ebce0 100755..100644
--- a/cmake/build/ci/appveyor.py
+++ b/project/ci/appveyor/cmake.py
@@ -19,6 +19,8 @@ import logging
import os
import sys
+from project.cmake.build import build
+
class Image(Enum):
VS_2013 = 'Visual Studio 2013'
@@ -132,11 +134,6 @@ def build_appveyor(argv=None):
args = _parse_args(argv)
_check_appveyor()
- this_module_dir = os.path.dirname(os.path.abspath(__file__))
- parent_module_dir = os.path.dirname(this_module_dir)
- sys.path.insert(1, parent_module_dir)
- from build import build
-
appveyor_argv = [
'--build', _get_build_dir(),
'--configuration', _get_configuration(),