File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -603,6 +603,7 @@ function Get-BuildArguments {
603603 $irrlicht = ($Config.IrrlichtDir -replace ' \\' , ' /' )
604604 $irrlichtDllWin = Join-Path $Config.IrrlichtDir " bin\Win64-VisualStudio\Irrlicht.dll"
605605 $irrlichtDll = ($irrlichtDllWin -replace ' \\' , ' /' )
606+ $irrlichtFlag = if ($Config.IrrlichtDir -and (Test-Path $Config.IrrlichtDir )) { " ON" } else { " OFF" }
606607
607608 # Deterministic prefix path so our roots win over ambient environment
608609 $prefixParts = @ ()
@@ -623,6 +624,7 @@ function Get-BuildArguments {
623624 " -DEIGEN3_INCLUDE_DIR=`" $eigenDir `" " ,
624625 " -DIrrlicht_ROOT=`" $irrlicht `" " ,
625626 " -DIRRLICHT_DLL_PATH=`" $irrlichtDll `" " ,
627+ " -DHYDROCHRONO_ENABLE_IRRLICHT=`" $irrlichtFlag `" " ,
626628 " -DCMAKE_PREFIX_PATH=`" $prefixPath `" " ,
627629 " -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON" ,
628630 " -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF" ,
You can’t perform that action at this time.
0 commit comments