@@ -388,6 +388,12 @@ echo [12/13] Building SeExpr...
388
388
REM ===============================================================================
389
389
390
390
:embree
391
+
392
+ if [platform] == [vc11] (
393
+ echo [13/13] Skipping Embree ^ (not supported with Visual Studio 2012^ )...
394
+ goto end_embree
395
+ )
396
+
391
397
echo [13/13] Building Embree...
392
398
393
399
mkdir %root% build\%platform% \embree-debug 2 > nul
@@ -401,15 +407,21 @@ echo [13/13] Building Embree...
401
407
mkdir %root% build\%platform% \embree-release 2 > nul
402
408
pushd %root% build\%platform% \embree-release
403
409
echo === Embree (Release) ========================================================== > BUILDLOG.txt
404
- REM The CMake arguments
405
- REM -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF -DCMAKE_CXX_FLAGS="-d2SSAOptimizer-"
406
- REM are required to work around a bug in the new SSA optimizer introduced in VS 2015:
407
- REM https://github.com/embree/embree/issues/157#issuecomment-334696351
408
- cmake -G %generator% -DCMAKE_BUILD_TYPE=Release -DEMBREE_STATIC_LIB=ON -DEMBREE_TUTORIALS=OFF -DEMBREE_RAY_MASK=ON -DEMBREE_TASKING_SYSTEM=INTERNAL -DEMBREE_ISPC_SUPPORT=OFF -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF -DCMAKE_CXX_FLAGS=" -d2SSAOptimizer-" -DCMAKE_INSTALL_PREFIX=%root% stage\%platform% \embree-release %src% \embree %redirect%
410
+ if [platform] == [vc14] (
411
+ REM The CMake argument
412
+ REM -DCMAKE_CXX_FLAGS="-d2SSAOptimizer-"
413
+ REM is required to work around a bug in the new SSA optimizer introduced in VS 2015:
414
+ REM https://github.com/embree/embree/issues/157#issuecomment-334696351
415
+ cmake -G %generator% -DCMAKE_BUILD_TYPE=Release -DEMBREE_STATIC_LIB=ON -DEMBREE_TUTORIALS=OFF -DEMBREE_RAY_MASK=ON -DEMBREE_TASKING_SYSTEM=INTERNAL -DEMBREE_ISPC_SUPPORT=OFF -DCMAKE_CXX_FLAGS=" -d2SSAOptimizer-" -DCMAKE_INSTALL_PREFIX=%root% stage\%platform% \embree-release %src% \embree %redirect%
416
+ ) else (
417
+ cmake -G %generator% -DCMAKE_BUILD_TYPE=Release -DEMBREE_STATIC_LIB=ON -DEMBREE_TUTORIALS=OFF -DEMBREE_RAY_MASK=ON -DEMBREE_TASKING_SYSTEM=INTERNAL -DEMBREE_ISPC_SUPPORT=OFF -DCMAKE_INSTALL_PREFIX=%root% stage\%platform% \embree-release %src% \embree %redirect%
418
+ )
409
419
devenv embree3.sln /build Release /project INSTALL %redirect%
410
420
type BUILDLOG.txt >> %root% build\%platform% \BUILDLOG.txt
411
421
popd
412
422
423
+ :end_embree
424
+
413
425
REM ===============================================================================
414
426
415
427
:done
0 commit comments