[Cmake] Upper case for package names

Stefan Schmidt Stefan.Schmidt at sophia.inria.fr
Fri Apr 25 10:16:32 EDT 2003


> > I want to set them. I'm trying to setup a build framework which is a
> > little bit more complicated.  My CMake project consists of several
> > "packages" which can be either compiled as part of the project or used
> > from a prebuilt source. I want to use the FIND_PACKAGE mechanism to
> > setup the proper INCLUDE_DIRs and LINK_DIRs (so the package can be used
> > stand-alone, too). As in my main CMakeList, I already know where to look
> > for the <pkg>Config.cmake file, I wanted to preset the _DIR cache entry
> > automatically.
>
> That is a good plan.  If the packages are all in your project anyway, why
> can't you just hard-code the upper-case versions of the names?

Unfortunately that's inconvenient in this case, because the list of packages 
is not really fixed (it can be also modified by an external script that helps 
to handle the packages and their CVS's).

Thanks for your answers, I think I'll try to go that "loadable command" way.

Kind regards,
Stefan




More information about the CMake mailing list