Cmake error.

Cmake error.

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Cmake error.

Post 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.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Cmake error.

Post by Auswaschbar »

Its a warning, not an error.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Cmake error.

Post 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.
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Cmake error.

Post 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.
Last edited by Super Mario on 29 Jan 2010, 02:05, edited 1 time in total.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Cmake error.

Post by SpliFF »

you should post an actual error.
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Cmake error.

Post 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?
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Cmake error.

Post by SpliFF »

I think it's just a cmake bug. I've had situations where I had to run cmake twice as well.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Cmake error.

Post by hoijui »

how/where form did you get spring source?
tools/ArchiveMover/CMakeLists.txt should always be there.
Post Reply

Return to “Help & Bugs”