Konrad Hofbauer wrote:
Hello,

I followed the excellent instructions in INSTALL.cmake to build LyX 1.5.5 using CMake 2.6 on the Mac, but the resulting XCode project failed to open (parsing error).

Cmake 2.6 ran fine, and the only warning it gave is also the hint to the fix of the problem:
"CMake Warning (dev) at intl/CMakeLists.txt:34 (add_definitions):
Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically. Run "cmake --help-policy CMP0005" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it."

There seems to be a change in cmake 2.6 how quotes are escaped, and if this is done "wrong", then XCode won't open the project file.

What helped for me is to add the following line to the top of branch/development/cmake/CMakeLists.txt:

cmake_policy(SET CMP0005 NEW)


Could somebody please confirm that this is the right thing to do (and does not brake older cmakes), and if so, commit it?
I will once Peter or Stefan confirm me that it's right. I guess it is.

Abdel.

Reply via email to