Author Topic: [Solved] CMake Problems  (Read 1049 times)

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
[Solved] CMake Problems
« on: 21 February 2011, 09:28:30 »
Hmm...if I use the latest version of CMake, it doesn't work. I guess we're not supposed to use newer versions then.
Edit:
Code: [Select]
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.
And I'm using 2.6 :/
edit: do I just ignore these warnings?

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: CMake Problems
« Reply #1 on: 21 February 2011, 18:17:33 »
Are you sure your source directory is right? It's the top level, not the source subdirectory. We have cmake_minimum_required set so you shouldn't see this warning.

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: CMake Problems
« Reply #2 on: 21 February 2011, 21:34:08 »
OK now it's fine, thanks. (Forgot to clear cache)
But now it says
Code: [Select]
CMake Error at CMakeLists.txt:270 (install):
  install DIRECTORY given unknown argument "OPTIONAL".

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: CMake Problems
« Reply #3 on: 21 February 2011, 21:47:30 »
What arguments are you including with the cmake command?

e.g. mine looks like this:
Code: [Select]
cmake -DGAE_CONFIG_DIR=/home/john/.glestadv -DGAE_DATA_DIR=/home/john/glestae_git/data/game -DGAE_USE_PHYSFS=ON ..

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: [Solved] CMake Problems
« Reply #4 on: 21 February 2011, 21:59:38 »
Nevermind the cmakelists had something about "optional something SVN" so I deleted that part, and it works.
edit: it couldn't find
Code: [Select]
Could NOT find CPPUNIT  (missing:  CPPUNIT_INCLUDE_DIR CPPUNIT_LIBRARY)and then I suppose that leads to why I can't compile
Code: [Select]
3>glestae\source\game\pch.h(15) : fatal error C1083: Cannot open include file: 'projectConfig.h': No such file or directoryEdit: Fixed everything, thanks silnarm