Page 1 of 1

Cmake error.

Posted: 29 Jan 2010, 01:27
by Super Mario
Try to configure and instead it give me this.

Code: Select all

CMake Warning (dev) at C:/Users/alex/Desktop/cmake-2.8.0-win32-x86/share/cmake-2.8/Modules/FindPackageMessage.cmake:36 (IF):
  given arguments:

    "NOT" "7zip_FIND_QUIETLY"

  An argument named "7zip_FIND_QUIETLY" appears in a conditional statement.
  Policy CMP0012 is not set: if() recognizes numbers and boolean constants.
  Run "cmake --help-policy CMP0012" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  C:/Users/alex/Desktop/cmake-2.8.0-win32-x86/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:67 (FIND_PACKAGE_MESSAGE)
  rts/build/cmake/Find7zip.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:203 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Re: Cmake error.

Posted: 29 Jan 2010, 01:31
by Auswaschbar
Its a warning, not an error.

Re: Cmake error.

Posted: 29 Jan 2010, 01:39
by SpliFF
pretty easy to fix though, just change the variable name from 7zip_FIND_QUIETLY to _7zip_FIND_QUIETLY or FIND_7ZIP_QUIETLY everywhere it's used. I looked this up and the warning simply means variables shouldn't start with numbers.

Re: Cmake error.

Posted: 29 Jan 2010, 01:43
by Super Mario
Never Mind. I fix the error by adding a empty folder named "ArchiveMover". Looks like someone forgot to edit the cmake configure file.
Edit: I some how got it configure but it's unable to generate the make file.

Re: Cmake error.

Posted: 29 Jan 2010, 02:04
by SpliFF
you should post an actual error.

Re: Cmake error.

Posted: 29 Jan 2010, 02:10
by Super Mario
SpliFF wrote:you should post an actual error.
I was trying to create a msys make file (since netbeans don't like mingw32-make very much apparently) and I got this error

Code: Select all

The source directory

    C:/Users/alex/Desktop/spring_0.80.5.2/tools/ArchiveMover

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.
I click configure again and somehow I am able to generate the make file. Has anyone try build using msys?

Re: Cmake error.

Posted: 29 Jan 2010, 02:35
by SpliFF
I think it's just a cmake bug. I've had situations where I had to run cmake twice as well.

Re: Cmake error.

Posted: 29 Jan 2010, 10:35
by hoijui
how/where form did you get spring source?
tools/ArchiveMover/CMakeLists.txt should always be there.