Commit 82ad0749 authored by LaurentBerger's avatar LaurentBerger

add pushd popd

parent 3e9a659f
...@@ -67,7 +67,7 @@ else ...@@ -67,7 +67,7 @@ else
cd .. cd ..
fi fi
RepoSource=opencv RepoSource=opencv
cd Build/$RepoSource pushd Build/$RepoSource
CMAKE_OPTIONS='-DBUILD_PERF_TESTS:BOOL=OFF -DBUILD_TESTS:BOOL=OFF -DBUILD_DOCS:BOOL=OFF -DWITH_CUDA:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DINSTALL_CREATE_DISTRIB=ON' CMAKE_OPTIONS='-DBUILD_PERF_TESTS:BOOL=OFF -DBUILD_TESTS:BOOL=OFF -DBUILD_DOCS:BOOL=OFF -DWITH_CUDA:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DINSTALL_CREATE_DISTRIB=ON'
cmake -G"$CMAKE_CONFIG_GENERATOR" $CMAKE_OPTIONS -DOPENCV_EXTRA_MODULES_PATH="$myRepo"/opencv_contrib/modules -DCMAKE_INSTALL_PREFIX="$myRepo"/install/"$RepoSource" "$myRepo/$RepoSource" cmake -G"$CMAKE_CONFIG_GENERATOR" $CMAKE_OPTIONS -DOPENCV_EXTRA_MODULES_PATH="$myRepo"/opencv_contrib/modules -DCMAKE_INSTALL_PREFIX="$myRepo"/install/"$RepoSource" "$myRepo/$RepoSource"
echo "************************* $Source_DIR -->debug" echo "************************* $Source_DIR -->debug"
...@@ -76,7 +76,7 @@ echo "************************* $Source_DIR -->release" ...@@ -76,7 +76,7 @@ echo "************************* $Source_DIR -->release"
cmake --build . --config release cmake --build . --config release
cmake --build . --target install --config release cmake --build . --target install --config release
cmake --build . --target install --config debug cmake --build . --target install --config debug
cd .. popd
@endcode @endcode
In this script I suppose you use VS 2015 in 64 bits In this script I suppose you use VS 2015 in 64 bits
@code{.bash} @code{.bash}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment