Revert "Move back temp frolder to the CMAKE_SOURCE_DIR (#8945)" (#9058)

This reverts commit 2e290a6e72.
This commit is contained in:
Alexander Zhogov 2021-12-07 13:27:34 +03:00 committed by GitHub
parent 746e55a330
commit b1d3be7eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 12 deletions

View File

@ -162,7 +162,7 @@ jobs:
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ls -alR $(REPO_DIR)/temp/
- script: ls -alR $(BUILD_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 $(REPO_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
workingDirectory: $(BUILD_DIR)
displayName: 'Install tests'

View File

@ -73,7 +73,7 @@ jobs:
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ls -alR $(REPO_DIR)/temp/
- script: ls -alR $(BUILD_DIR)/temp/
displayName: 'List temp SDKs'
- script: |

View File

@ -126,7 +126,7 @@ jobs:
$(REPO_DIR)
workingDirectory: $(BUILD_DIR)
- script: ls -alR $(REPO_DIR)/temp/
- script: ls -alR $(BUILD_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 $(REPO_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_ubuntu20/opencv/* $(INSTALL_DIR)/opencv/
workingDirectory: $(BUILD_DIR)
displayName: 'Install tests'

View File

@ -100,7 +100,7 @@ jobs:
workingDirectory: $(BUILD_DIR)
displayName: 'CMake'
- script: ls -alR $(REPO_DIR)/temp/
- script: ls -alR $(BUILD_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 $(REPO_DIR)/temp/opencv_4.5.2_osx/opencv/* $(INSTALL_DIR)/opencv/
cp -R $(BUILD_DIR)/temp/opencv_4.5.2_osx/opencv/* $(INSTALL_DIR)/opencv/
workingDirectory: $(BUILD_DIR)
displayName: 'Install tests'

View File

@ -136,7 +136,7 @@ jobs:
workingDirectory: $(BUILD_DIR)
displayName: 'CMake'
- script: dir $(REPO_DIR)\temp\ /s
- script: dir $(BUILD_DIR)\temp\ /s
displayName: 'List temp SDKs'
- script: |

View File

@ -70,7 +70,7 @@ jobs:
workingDirectory: $(BUILD_DIR)
displayName: 'CMake'
- script: dir $(REPO_DIR)\temp\ /s
- script: dir $(BUILD_DIR)\temp\ /s
displayName: 'List temp SDKs'
- script: call "$(MSVS_VARS_PATH)" && $(WORK_DIR)\ninja-win\ninja

View File

@ -5,7 +5,7 @@
cmake_policy(SET CMP0054 NEW)
# TODO: fix it
set_temp_directory(TEMP "${CMAKE_SOURCE_DIR}")
set_temp_directory(TEMP "${CMAKE_BINARY_DIR}")
if(ENABLE_SAME_BRANCH_FOR_MODELS)
branchName(MODELS_BRANCH)

View File

@ -92,13 +92,21 @@ 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, '../../../temp/tbb/bin'),
os.path.join(script_path, '../../../inference-engine/temp/tbb/bin'),
]
},
{
@ -106,13 +114,21 @@ 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, '../../../temp/tbb/bin'),
os.path.join(script_path, '../../../inference-engine/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),