Variable not substituted in OGRE.pc and others

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
andrecaldas
Halfling
Posts: 54
Joined: Mon May 06, 2024 1:06 am
x 3

Variable not substituted in OGRE.pc and others

Post by andrecaldas »

The variable OGRE_PLUGINS_PATH is not being substituted in package config files: OGRE.pc and others.
https://github.com/OGRECave/ogre/blob/d ... E.pc.in#L5

I don't understand anything about cmake, but I believe the reason is the fact that "CMake/InstallResources.cmake" is being included after "CMake/ConfigureBuild.cmake":
https://github.com/OGRECave/ogre/blob/d ... #L425-L442

The variable is set in InstallResources.cmake:
https://github.com/OGRECave/ogre/blob/d ... ke#L34-L40

paroj
OGRE Team Member
OGRE Team Member
Posts: 2106
Joined: Sun Mar 30, 2014 2:51 pm
x 1132

Re: Variable not substituted in OGRE.pc and others

Post by paroj »

yeah.. looks like the .pc stuff should be moved to InstallResources.cmake. Feel free to provide a PR on github