Thirdparty install with cmake

hi, when i generate the urho lib with visual studio 2017 , and when i install it into “program files” GLEW and IK are not copied into thirdparty include. And when i copy manualy glew and ik , the error in my project is :

fatal error C1083: Cannot open file include : ‘ik/config.h’ : No such file or directory

config.h is not generated.

How did you do the “install”? If it is via the “install” built-in target then it should work out of the box.

yes , via the install target inside visual studio inspector ( generate from vs ), and yes, i have the admin right , and i dont change the install path.

I see. But does it cause any problem in the first place before you manually trying to “add” things into the installed location. We intentionally do not expose all the 3rd-party libs to the library users. Those not are considered as internal/private implementation detail. It means you can only interact with them via Urho3D public API.

yes, it cause a problem , if i dont move it , i have this error :

urho3d\include\urho3d\graphics\opengl\oglgraphicsimpl.h(39): fatal error C1083: Cannot open file include : ‘GLEW/glew.h’ : No such file or directory

I just looked at the code and it seems you are right that “glew.h” should be exposed to the library user for the platforms that need it. It is an easy fix.

EDIT: it is fixed in master branch now.

1 Like

Thank you sir. happy to help you.

1 Like