Move back temp frolder to the CMAKE_SOURCE_DIR (#9072)
* Move back temp frolder to the CMAKE_SOURCE_DIR * Fix windows azure
This commit is contained in:
parent
32d3dade40
commit
d18e80b604
@ -162,7 +162,7 @@ jobs:
|
||||
$(REPO_DIR)
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
|
||||
- script: ls -alR $(BUILD_DIR)/temp/
|
||||
- script: ls -alR $(REPO_DIR)/temp/
|
||||
displayName: 'List temp SDKs'
|
||||
|
||||
- script: ccache --zero-stats --max-size=1T --show-config
|
||||
@ -207,7 +207,7 @@ jobs:
|
||||
set -e
|
||||
mkdir $(INSTALL_DIR)/opencv/
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake
|
||||
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
|
||||
cp -R $(REPO_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'Install tests'
|
||||
|
||||
|
@ -73,7 +73,7 @@ jobs:
|
||||
$(REPO_DIR)
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
|
||||
- script: ls -alR $(BUILD_DIR)/temp/
|
||||
- script: ls -alR $(REPO_DIR)/temp/
|
||||
displayName: 'List temp SDKs'
|
||||
|
||||
- script: |
|
||||
|
@ -126,7 +126,7 @@ jobs:
|
||||
$(REPO_DIR)
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
|
||||
- script: ls -alR $(BUILD_DIR)/temp/
|
||||
- script: ls -alR $(REPO_DIR)/temp/
|
||||
displayName: 'List temp SDKs'
|
||||
|
||||
- script: ninja
|
||||
@ -147,7 +147,7 @@ jobs:
|
||||
set -e
|
||||
mkdir $(INSTALL_DIR)/opencv/
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake
|
||||
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
|
||||
cp -R $(REPO_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'Install tests'
|
||||
|
||||
|
@ -100,7 +100,7 @@ jobs:
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'CMake'
|
||||
|
||||
- script: ls -alR $(BUILD_DIR)/temp/
|
||||
- script: ls -alR $(REPO_DIR)/temp/
|
||||
displayName: 'List temp SDKs'
|
||||
|
||||
- script: ninja
|
||||
@ -121,7 +121,7 @@ jobs:
|
||||
set -e
|
||||
mkdir $(INSTALL_DIR)/opencv/
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake
|
||||
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_osx/opencv/* $(INSTALL_DIR)/opencv/
|
||||
cp -R $(REPO_DIR)/temp/opencv_4.5.2_osx/opencv/* $(INSTALL_DIR)/opencv/
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'Install tests'
|
||||
|
||||
|
@ -136,7 +136,7 @@ jobs:
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'CMake'
|
||||
|
||||
- script: dir $(BUILD_DIR)\temp\ /s
|
||||
- script: dir $(REPO_DIR)\temp\ /s
|
||||
displayName: 'List temp SDKs'
|
||||
|
||||
- script: |
|
||||
@ -163,7 +163,7 @@ jobs:
|
||||
workingDirectory: $(BUILD_SAMPLES_TESTS_DIR)
|
||||
displayName: 'Install Samples Tests'
|
||||
|
||||
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake && xcopy $(BUILD_DIR)\temp\opencv_4.5.2\opencv\* $(INSTALL_DIR)\opencv\ /e /h /y
|
||||
- script: $(CMAKE_CMD) -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) -DCOMPONENT=tests -P cmake_install.cmake && xcopy $(REPO_DIR)\temp\opencv_4.5.2\opencv\* $(INSTALL_DIR)\opencv\ /e /h /y
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'Install tests'
|
||||
|
||||
|
@ -70,7 +70,7 @@ jobs:
|
||||
workingDirectory: $(BUILD_DIR)
|
||||
displayName: 'CMake'
|
||||
|
||||
- script: dir $(BUILD_DIR)\temp\ /s
|
||||
- script: dir $(REPO_DIR)\temp\ /s
|
||||
displayName: 'List temp SDKs'
|
||||
|
||||
- script: call "$(MSVS_VARS_PATH)" && $(WORK_DIR)\ninja-win\ninja
|
||||
|
@ -5,7 +5,7 @@
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
# TODO: fix it
|
||||
set_temp_directory(TEMP "${CMAKE_BINARY_DIR}")
|
||||
set_temp_directory(TEMP "${CMAKE_SOURCE_DIR}")
|
||||
|
||||
if(ENABLE_SAME_BRANCH_FOR_MODELS)
|
||||
branchName(MODELS_BRANCH)
|
||||
|
@ -92,21 +92,13 @@ def find_ie_version(silent=False):
|
||||
|
||||
# Windows
|
||||
bindings_paths_windows = [
|
||||
# Package
|
||||
{
|
||||
"module": os.path.join(script_path, '../../../../../../../python/', python_version),
|
||||
"libs": [
|
||||
os.path.join(script_path, '../../../../../../../runtime/bin/intel64/Release'),
|
||||
os.path.join(script_path, '../../../../../../../runtime/3rdparty/tbb/bin'),
|
||||
],
|
||||
},
|
||||
# Local builds
|
||||
{
|
||||
"module": os.path.join(script_path, '../../../../../../bin/intel64/Release/python_api/', python_version),
|
||||
"libs": [
|
||||
os.path.join(script_path, '../../../../../../bin/intel64'),
|
||||
os.path.join(script_path, '../../../../../../bin/intel64/Release'),
|
||||
os.path.join(script_path, '../../../../../../inference-engine/temp/tbb/bin'),
|
||||
os.path.join(script_path, '../../../../../../temp/tbb/bin'),
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -114,21 +106,13 @@ def find_ie_version(silent=False):
|
||||
"libs": [
|
||||
os.path.join(script_path, '../../../../../../bin/intel64'),
|
||||
os.path.join(script_path, '../../../../../../bin/intel64/Debug'),
|
||||
os.path.join(script_path, '../../../../../../inference-engine/temp/tbb/bin'),
|
||||
os.path.join(script_path, '../../../../../../temp/temp/tbb/bin'),
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
# Linux / Darwin
|
||||
bindings_paths_linux = [
|
||||
# Package
|
||||
{
|
||||
"module": os.path.join(script_path, '../../../../../../../python/', python_version),
|
||||
"libs": [
|
||||
os.path.join(script_path, '../../../../../../../runtime/lib/intel64'),
|
||||
os.path.join(script_path, '../../../../../../../runtime/3rdparty/tbb/lib'),
|
||||
],
|
||||
},
|
||||
# Local builds
|
||||
{
|
||||
"module": os.path.join(script_path, '../../../../../../bin/intel64/Release/lib/python_api/', python_version),
|
||||
|
Loading…
Reference in New Issue
Block a user