Using that script I still get an error, although the numbers have changed. I think you're relying on a feature introduced in CMake 2.8; I'm using CMake 2.6.4.
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:14 (STRING):
string end index: -1 is out of range 0 - 3
@Myunghoon Kim: first of all I should note that you should be able to find a binary .rpm of wml for CentOS - at least there is one for Mandriva Linux/Mageia Linux. wml-2.0.x should work fine as well (the only major change from wml-2.0.x was the conversion to CMake).
Otherwise, it is highly possible that the error you are getting with pod2man is due to the perl shipped with CentOS 6.2 which is only perl-5.10.1-119.el6_1.1.x86_64.rpm whereas the currently supported perls are 5.14.2 and 5.16.0 . That or it is caused by a downstream patch of the perl package in RHEL/CentOS, which is notorious for that. Nevertheless, I will try to investigate all that.