Skip to content

Commit

Permalink
don't force build debug version of boost on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Aug 10, 2023
1 parent c1e85db commit b396f55
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions build_release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ cd deps
mkdir build
cd build
set DEPS=%CD%/OrcaSlicer_dep
if "%1"=="studio" (
GOTO :studio
if "%1"=="slicer" (
GOTO :slicer
)
echo "building deps.."
cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target ALL_BUILD -- -m
cmake --build . --config Release --target deps -- -m

if "%1"=="deps" exit /b 0

:studio
echo "building studio..."
:slicer
echo "building Orca Slicer..."
cd %WP%
mkdir build
cd build
Expand Down
8 changes: 4 additions & 4 deletions build_release_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ while getopts ":a:sdphn" opt; do
export ARCH="$OPTARG"
;;
s )
export BUILD_TARGET="studio"
export BUILD_TARGET="slicer"
;;
n )
export NIGHTLY_BUILD="1"
;;
h ) echo "Usage: ./build_release_macos.sh [-d]"
echo " -d: Build deps only"
echo " -a: Set ARCHITECTURE (arm64 or x86_64)"
echo " -s: Build studio only"
echo " -s: Build slicer only"
echo " -n: Nightly build"
exit 0
;;
Expand Down Expand Up @@ -54,7 +54,7 @@ mkdir -p build_$ARCH
cd build_$ARCH
DEPS=$PWD/OrcaSlicer_dep_$ARCH
mkdir -p $DEPS
if [ "studio." != $BUILD_TARGET. ];
if [ "slicer." != $BUILD_TARGET. ];
then
echo "building deps..."
echo "cmake ../ -DDESTDIR=$DEPS -DOPENSSL_ARCH=darwin64-${ARCH}-cc -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES:STRING=${ARCH}"
Expand All @@ -75,7 +75,7 @@ fi
cd $WD
mkdir -p build_$ARCH
cd build_$ARCH
echo "building studio..."
echo "building slicer..."
cmake .. -GXcode -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="$DEPS/usr/local" -DCMAKE_INSTALL_PREFIX="$PWD/OrcaSlicer" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH="$DEPS/usr/local" -DCMAKE_MACOSX_BUNDLE=ON -DCMAKE_OSX_ARCHITECTURES=${ARCH}
cmake --build . --config Release --target ALL_BUILD
mkdir -p OrcaSlicer
Expand Down
10 changes: 5 additions & 5 deletions build_release_vs2022.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ cd deps
mkdir build
cd build
set DEPS=%CD%/OrcaSlicer_dep
if "%1"=="studio" (
GOTO :studio
if "%1"=="slicer" (
GOTO :slicer
)
echo "building deps.."
cmake ../ -G "Visual Studio 17 2022" -A x64 -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target ALL_BUILD -- -m
cmake --build . --config Release --target deps -- -m

if "%1"=="deps" exit /b 0

:studio
echo "building studio..."
:slicer
echo "building Orca Slicer..."
cd %WP%
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion deps/Boost/Boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if (_cfg_rel GREATER -1 OR _cfg_relwdeb GREATER -1 OR _cfg_minsizerel GREATER -1
list(APPEND _boost_variants release)
endif()

if (_cfg_deb GREATER -1 OR (MSVC AND ${DEP_DEBUG}) )
if (MSVC AND ${DEP_DEBUG} )
list(APPEND _boost_variants debug)
endif()

Expand Down

0 comments on commit b396f55

Please sign in to comment.