Konrad Hofbauer wrote:
Konrad Hofbauer <[EMAIL PROTECTED]> writes:
What helped for me is to add the following line to the top of branch/development/cmake/CMakeLists.txt:

cmake_policy(SET CMP0005 NEW)


Along the way I also had to change in the same file
add_definitions(-DBOOST_USER_CONFIG="<config.h>")
to
add_definitions(-DBOOST_USER_CONFIG=config.h)


However, I am now stuck with a compilation error "invalid initializer" in
intl/dcigettext.c, which is
const char _nl_default_dirname[] = LOCALEDIR;

It seems like LOCALEDIR is not set correctly.
CMake finds setlocale and the C++ include "locale".
Manually setting
set(LOCALEDIR       "/usr/share/locale")
in CMakeLists.txt does not help either.

Does somebody know where I have to specify this?
One question: don't you have a port of gettext/libintl on your system already? And if not could you install it? If yes, then these problems won't have to be solved.
FYI, we moved away from internal intl for CMake/Windows.

Abdel.

Reply via email to