Re: [eigen] CMake configuration error on OSX using ninja

[ Thread Index | Date Index | More Archives ]

Thank you for the report.

I backported the required changes from the devel branch to the 3.2 branch. So the next 3..2 and 3.3 releases should be fine with Ninja.


On Wed, Jun 29, 2016 at 5:27 PM, Reicht, Ignaz <i.reicht@xxxxxxxxxxxxxxxxxx> wrote:
Dear Eigen Developers,

When building Eigen on OSX 10.11.5 using ninja, CMake throws this error:


CMake Error:
  The detected version of Ninja () is less than the version of Ninja required
  by CMake (1.3).


This means that the version of Ninja cannot be detected. This is caused, because in file EigenConfigureTesting.cmake line 22: "set(CMAKE_MAKE_PROGRAM "@EIGEN_MAKECOMMAND_PLACEHOLDER@")" replaces the path to ninja. Here the output of a patched CMake Configuration printing information during determing ninjas version:


CMake Warning (dev):
   _myDEBUG_1 command:/usr/local/bin/ninja
   _myDEBUG_1 command:--version
   _myDEBUG_1 command this->:/usr/local/bin/ninja
   _myDEBUG_2 extracted version:1.7.1
   _myDEBUG_3 set version:1.7.1

 This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev):
   _myDEBUG_1 command:--version
   _myDEBUG_2 extracted version:
   _myDEBUG_3 set version:

 This warning is for project developers.  Use -Wno-dev to suppress it.


when commenting line 22, everything builds like a charm. Is there any fix planned in future releases?

Ignaz Reicht

Ignaz Reicht, M.Sc.
Enterprise Architect
Div. Radiology
Task Force Software Development for Integrated Diagnostics and Therapy
Div. Medical and Biological Informatics

German Cancer Research Center (DKFZ)
Foundation under Public Law
Im Neuenheimerfeld 280
D-69120 Heidelberg
+49 (0) 6221 42-3023

Ph.D Student, Institut of Forensic Medicine and Traffic Medicine
Medical Faculty Heidelberg
Voßstraße 2, Geb. 4420
69115 Heidelberg
Tel: 06221 56-8949
Fax: 06221 56-5252

Confidentiality Note: This message is intended only for the use of the named recipient(s) and may obtain confidential and/or privileged information. If you are not the intended recipient, please contact the sender and delete the message. Any unauthorized use of the information contained in this message is prohibited.

Mail converted by MHonArc 2.6.19+