Page 1 of 1

Variable not substituted in OGRE.pc and others

Posted: Mon Sep 02, 2024 2:09 am
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


Re: Variable not substituted in OGRE.pc and others

Posted: Mon Sep 02, 2024 12:26 pm
by paroj

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