CMake freezes with -D options

Hi

This is working fine: script\cmake_vs2019.bat URHO3D_VS2019

But script\cmake_vs2019.bat URHO3D_VS2019 -DURHO3D_OPENGL=1
freezes
The same happens with script\cmake_vs2019.bat URHO3D_VS2019 -DURHO3D_LUA=0

I use CMake 3.19.2 on Windows.
Is correct to do: script\cmake_vs2019.bat URHO3D_VS2019 -DURHO3D_OPENGL=1?
anyone can reproduce it?

Insert a space in between -D and the rest .
i.e. -DURHO3D_OPENGL=1 should be -D URHO3D_OPENGL=1

1 Like

Hi.
It works.
But I had to do engineParameters_[EP_OPENGL] = true; in sample.inl
With urho1.7 I didn’t have to did it.

Perhaps it must to be in Urho3D - Documentation - Building Urho3D library