Hello,
I am trying to setup a project using Urho3D, built from source (tag 1.6) in a linux environment. I am having trouble reusing Urho’s cmake macros for testing.
I see that URHO3D_TESTING needs to be defined for test support, but when I try to build my project with this option, I get the following warning, despite having built urho with the same option: “conflicting URHO3D_TESTING build option is ignored.”
The “AUTO_DISCOVER_VAR” mechanism in FindUrho3d.cmake does not find it and after some cmake debugging I found that, indeed, the output of CheckUrho3DLibrary.cpp does not include the define, even though the option was taken into account when building urho (I can run urho’s tests with make test).
My search in the forums and issues did not yield much, only this thread from a year ago mentioning the intention to discover the variable automatic. So, even though I am new to both Urho and CMake, I wonder if this is a bug that could have gone unnoticed so far?
BTW, sorry if you are reading this twice: I also asked pretty much the same in gitter, but did not get any replies and only now found the time to sign up to the forums and post here.
Cheers,
Ricardo