[CMake] Warning with ccmake 2.8.4
Brad King
brad.king at kitware.com
Tue Mar 8 08:22:50 EST 2011
On 03/08/2011 02:53 AM, Andreas Kelle-Emden wrote:
> I set the variable CMAKE_PREFIX_PATH on the command line
> so that CMake can find some Config files installed in a
> non-standard directory.
> The makefile generator prints the following warning:
>
> CMake Warning: The variable, 'CMAKE_PREFIX_PATH', specified manually,
> was not used during the generation.
>
> Actually, the variable IS used, but only for finding the ***_DIRs.
If the _DIRs are already set then there is no search and the variable
is not used. Does this happen on the very first run in a new build tree?
You shouldn't need to pass it on the command line after the first time
because it will be stored persistently in CMakeCache.txt.
-Brad
More information about the CMake
mailing list