--- On Mon, 6/9/08, Amitha Perera <amithaperera@...> wrote:
> From: Amitha Perera <amithaperera@...>
> Subject: Re: [Vxl-users] Whitespace warnings configuring with CMake 2.6
> To: "Daniel" <baddogsprocket@...>
> Cc: vxl-users@...
> Date: Monday, June 9, 2008, 2:56 PM
> Daniel wrote:
> > I had to update to CMake 2.6 because the Mandriva RPM
> of CMake 2.4 doesn't come with
> Modules/FindPackageHandleStandardArgs.cmake, which is
> called by FindEXPAT.cmake.
> Odd. At least one dashboard build is done with CMake
> 2.4.7. What is
> the patch number of CMake 2.4 that you had?
The official Mandriva release is up to CMake 2.4.8. This could be just an omission by whoever packaged up the Mandriva RPM.
> > Now, when I generate using CMake 2.6, I get some
> warnings that tell me to type the following command:
> > cmake --help-policy CMP0004
> > for details.
> Again, odd, because many of our dashboard builds use CMake
> 2.6. Are you
> getting this error on vxl itself, or on your CMakeLists.txt
> files? What
> is the patch level of your CMake 2.6? (Run "cmake
I don't understand the difference between 'getting this error on vxl itself', and 'on your CMakeLists.txt files'. The only CMakeLists.txt files I am dealing with come from vxl itself. I have not touched or modified them from the CVS checkout. Is that what you are asking?
cmake version 2.6-patch 0
> > P.S. It appears the Mandriva RPM for CMake 2.6 has no
> cmake_policy command either.
> That's hard to believe: cmake 2.6 introduced the
> cmake_policy command.
> Is there some dual installation of CMake 2.4 and CMake 2.6
> going on?
I believe I can answer this one. When I first read that warning message, I assumed that 'cmake_policy' was a *command line* program. I saw another warning message (CMP0003) that seemed to indicate cmake_policy is really a directive you put in your CMakeLists.txt file. I would try it, except suppressing warnings is generally a Bad Idea(tm).