CMake Migration

Cmake Migration projects is a GSoC project mentored by Pierre A. Joye and developed by Alejandro Leiva. More info.


In PHP context CMake should do the PHP developer's life easier and more productive.

  • Uniform language in many platforms.
  • Automatic generation of native workspaces and projects (XCode, Visual Studio, Borland, Makefile, …)
  • The ability to automatically search for programs, libraries and header files.
  • Macro support.
  • The ability to generate native projects formats.
  • Cross-compiling support.

Supported Platforms

  • Linux
  • Solaris / SunOS
  • IRIX
  • HPUX
  • AIX
  • Mac OS X > 10.2
  • FreeBSD
  • OSF
  • Windows 98/ME/NT/2K/XP
  • Windows Cygwin
  • Windows Mingw


How to track it

You can get acces to web interfaces for the project accesing to:

How to get it

You can get the current development code (trunk) with anonymous access from svn using this command:

// anonymous login
svn co php.cmake
// <username> login
svn co --username <username> php.cmake

Note: If you want to add some patches you can send it or request an account to

How to test it

Currently we support php-src/trunk source code, added as a svn external property.unk/cmake/) to your php checkouted copy.

I suggest you that use an out-the-source compiling strategy. Move to another directory and execute cmake <php_source_dir> after that you'll have a Makefile file (in make platforms), execute make (or load the project file generated)

You can use too the script (i.e. ./build_src <php_source_dir>)

Linux and MacOS X

  • Copy ./cmake dir to src/php5 and cmake'it to ./build directory and make'it
dendrita:php.cmake/trunk $ ./ src/php5/     


  • TbD

Other Platforms

  • TbD
internals/cmake.txt · Last modified: 2011/04/06 12:59 (external edit)