<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>cmake/FindEigen.cmake - ceres-solver - Git at Google</title><link rel="stylesheet" type="text/css" href="/+static/base.HLL9TqKl0YYybSzmT_wTdw.cache.css"><link rel="stylesheet" type="text/css" href="/+static/prettify/prettify.pZ5FqzM6cPxAflH0va2Ucw.cache.css"><!-- default customHeadTagPart --></head><body class="Site"><header class="Site-header"><div class="Header"><a class="Header-image" href="/"><img src="//www.gstatic.com/images/branding/lockups/2x/lockup_git_color_108x24dp.png" width="108" height="24" alt="Google Git"></a><div class="Header-menu"> <a class="Header-menuItem" href="https://accounts.google.com/AccountChooser?service=gerritcodereview&amp;continue=https://ceres-solver.googlesource.com/login/ceres-solver/%2B/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c/cmake/FindEigen.cmake">Sign in</a> </div></div></header><div class="Site-content"><div class="Container "><div class="Breadcrumbs"><a class="Breadcrumbs-crumb" href="/?format=HTML">ceres-solver</a> / <a class="Breadcrumbs-crumb" href="/ceres-solver/">ceres-solver</a> / <a class="Breadcrumbs-crumb" href="/ceres-solver/+/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c">dfb8c67524c1f5e953aaf2a3bb519143b6364c4c</a> / <a class="Breadcrumbs-crumb" href="/ceres-solver/+/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c/">.</a> / <a class="Breadcrumbs-crumb" href="/ceres-solver/+/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c/cmake">cmake</a> / <span class="Breadcrumbs-crumb">FindEigen.cmake</span></div><div class="u-sha1 u-monospace BlobSha1">blob: 0d8d1cdffde36a193e8315c189583c754aa99b3e [<a href="/ceres-solver/+/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c/cmake/FindEigen.cmake">file</a>] [<a href="/ceres-solver/+log/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c/cmake/FindEigen.cmake">log</a>] [<a href="/ceres-solver/+blame/dfb8c67524c1f5e953aaf2a3bb519143b6364c4c/cmake/FindEigen.cmake">blame</a>]</div><table class="FileContents"><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="1" onclick="window.location.hash='#1'"></td><td class="FileContents-lineContents" id="1"><span class="com"># Ceres Solver - A fast non-linear least squares minimizer</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="2" onclick="window.location.hash='#2'"></td><td class="FileContents-lineContents" id="2"><span class="com"># Copyright 2013 Google Inc. All rights reserved.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="3" onclick="window.location.hash='#3'"></td><td class="FileContents-lineContents" id="3"><span class="com"># http://code.google.com/p/ceres-solver/</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="4" onclick="window.location.hash='#4'"></td><td class="FileContents-lineContents" id="4"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="5" onclick="window.location.hash='#5'"></td><td class="FileContents-lineContents" id="5"><span class="com"># Redistribution and use in source and binary forms, with or without</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="6" onclick="window.location.hash='#6'"></td><td class="FileContents-lineContents" id="6"><span class="com"># modification, are permitted provided that the following conditions are met:</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="7" onclick="window.location.hash='#7'"></td><td class="FileContents-lineContents" id="7"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="8" onclick="window.location.hash='#8'"></td><td class="FileContents-lineContents" id="8"><span class="com"># * Redistributions of source code must retain the above copyright notice,</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="9" onclick="window.location.hash='#9'"></td><td class="FileContents-lineContents" id="9"><span class="com">#   this list of conditions and the following disclaimer.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="10" onclick="window.location.hash='#10'"></td><td class="FileContents-lineContents" id="10"><span class="com"># * Redistributions in binary form must reproduce the above copyright notice,</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="11" onclick="window.location.hash='#11'"></td><td class="FileContents-lineContents" id="11"><span class="com">#   this list of conditions and the following disclaimer in the documentation</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="12" onclick="window.location.hash='#12'"></td><td class="FileContents-lineContents" id="12"><span class="com">#   and/or other materials provided with the distribution.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="13" onclick="window.location.hash='#13'"></td><td class="FileContents-lineContents" id="13"><span class="com"># * Neither the name of Google Inc. nor the names of its contributors may be</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="14" onclick="window.location.hash='#14'"></td><td class="FileContents-lineContents" id="14"><span class="com">#   used to endorse or promote products derived from this software without</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="15" onclick="window.location.hash='#15'"></td><td class="FileContents-lineContents" id="15"><span class="com">#   specific prior written permission.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="16" onclick="window.location.hash='#16'"></td><td class="FileContents-lineContents" id="16"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="17" onclick="window.location.hash='#17'"></td><td class="FileContents-lineContents" id="17"><span class="com"># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="18" onclick="window.location.hash='#18'"></td><td class="FileContents-lineContents" id="18"><span class="com"># AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="19" onclick="window.location.hash='#19'"></td><td class="FileContents-lineContents" id="19"><span class="com"># IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="20" onclick="window.location.hash='#20'"></td><td class="FileContents-lineContents" id="20"><span class="com"># ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="21" onclick="window.location.hash='#21'"></td><td class="FileContents-lineContents" id="21"><span class="com"># LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="22" onclick="window.location.hash='#22'"></td><td class="FileContents-lineContents" id="22"><span class="com"># CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="23" onclick="window.location.hash='#23'"></td><td class="FileContents-lineContents" id="23"><span class="com"># SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="24" onclick="window.location.hash='#24'"></td><td class="FileContents-lineContents" id="24"><span class="com"># INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="25" onclick="window.location.hash='#25'"></td><td class="FileContents-lineContents" id="25"><span class="com"># CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="26" onclick="window.location.hash='#26'"></td><td class="FileContents-lineContents" id="26"><span class="com"># ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="27" onclick="window.location.hash='#27'"></td><td class="FileContents-lineContents" id="27"><span class="com"># POSSIBILITY OF SUCH DAMAGE.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="28" onclick="window.location.hash='#28'"></td><td class="FileContents-lineContents" id="28"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="29" onclick="window.location.hash='#29'"></td><td class="FileContents-lineContents" id="29"><span class="com"># Author: alexs.mac@gmail.com (Alex Stewart)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="30" onclick="window.location.hash='#30'"></td><td class="FileContents-lineContents" id="30"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="31" onclick="window.location.hash='#31'"></td><td class="FileContents-lineContents" id="31"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="32" onclick="window.location.hash='#32'"></td><td class="FileContents-lineContents" id="32"><span class="com"># FindEigen.cmake - Find Eigen library, version &gt;= 3.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="33" onclick="window.location.hash='#33'"></td><td class="FileContents-lineContents" id="33"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="34" onclick="window.location.hash='#34'"></td><td class="FileContents-lineContents" id="34"><span class="com"># This module defines the following variables:</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="35" onclick="window.location.hash='#35'"></td><td class="FileContents-lineContents" id="35"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="36" onclick="window.location.hash='#36'"></td><td class="FileContents-lineContents" id="36"><span class="com"># EIGEN_FOUND: TRUE iff Eigen is found.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="37" onclick="window.location.hash='#37'"></td><td class="FileContents-lineContents" id="37"><span class="com"># EIGEN_INCLUDE_DIRS: Include directories for Eigen.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="38" onclick="window.location.hash='#38'"></td><td class="FileContents-lineContents" id="38"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="39" onclick="window.location.hash='#39'"></td><td class="FileContents-lineContents" id="39"><span class="com"># EIGEN_VERSION: Extracted from Eigen/src/Core/util/Macros.h</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="40" onclick="window.location.hash='#40'"></td><td class="FileContents-lineContents" id="40"><span class="com"># EIGEN_WORLD_VERSION: Equal to 3 if EIGEN_VERSION = 3.2.0</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="41" onclick="window.location.hash='#41'"></td><td class="FileContents-lineContents" id="41"><span class="com"># EIGEN_MAJOR_VERSION: Equal to 2 if EIGEN_VERSION = 3.2.0</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="42" onclick="window.location.hash='#42'"></td><td class="FileContents-lineContents" id="42"><span class="com"># EIGEN_MINOR_VERSION: Equal to 0 if EIGEN_VERSION = 3.2.0</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="43" onclick="window.location.hash='#43'"></td><td class="FileContents-lineContents" id="43"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="44" onclick="window.location.hash='#44'"></td><td class="FileContents-lineContents" id="44"><span class="com"># The following variables control the behaviour of this module:</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="45" onclick="window.location.hash='#45'"></td><td class="FileContents-lineContents" id="45"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="46" onclick="window.location.hash='#46'"></td><td class="FileContents-lineContents" id="46"><span class="com"># EIGEN_INCLUDE_DIR_HINTS: List of additional directories in which to</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="47" onclick="window.location.hash='#47'"></td><td class="FileContents-lineContents" id="47"><span class="com">#                          search for eigen includes, e.g: /timbuktu/eigen3.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="48" onclick="window.location.hash='#48'"></td><td class="FileContents-lineContents" id="48"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="49" onclick="window.location.hash='#49'"></td><td class="FileContents-lineContents" id="49"><span class="com"># The following variables are also defined by this module, but in line with</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="50" onclick="window.location.hash='#50'"></td><td class="FileContents-lineContents" id="50"><span class="com"># CMake recommended FindPackage() module style should NOT be referenced directly</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="51" onclick="window.location.hash='#51'"></td><td class="FileContents-lineContents" id="51"><span class="com"># by callers (use the plural variables detailed above instead).  These variables</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="52" onclick="window.location.hash='#52'"></td><td class="FileContents-lineContents" id="52"><span class="com"># do however affect the behaviour of the module via FIND_[PATH/LIBRARY]() which</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="53" onclick="window.location.hash='#53'"></td><td class="FileContents-lineContents" id="53"><span class="com"># are NOT re-called (i.e. search for library is not repeated) if these variables</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="54" onclick="window.location.hash='#54'"></td><td class="FileContents-lineContents" id="54"><span class="com"># are set with valid values _in the CMake cache_. This means that if these</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="55" onclick="window.location.hash='#55'"></td><td class="FileContents-lineContents" id="55"><span class="com"># variables are set directly in the cache, either by the user in the CMake GUI,</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="56" onclick="window.location.hash='#56'"></td><td class="FileContents-lineContents" id="56"><span class="com"># or by the user passing -DVAR=VALUE directives to CMake when called (which</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="57" onclick="window.location.hash='#57'"></td><td class="FileContents-lineContents" id="57"><span class="com"># explicitly defines a cache variable), then they will be used verbatim,</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="58" onclick="window.location.hash='#58'"></td><td class="FileContents-lineContents" id="58"><span class="com"># bypassing the HINTS variables and other hard-coded search locations.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="59" onclick="window.location.hash='#59'"></td><td class="FileContents-lineContents" id="59"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="60" onclick="window.location.hash='#60'"></td><td class="FileContents-lineContents" id="60"><span class="com"># EIGEN_INCLUDE_DIR: Include directory for CXSparse, not including the</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="61" onclick="window.location.hash='#61'"></td><td class="FileContents-lineContents" id="61"><span class="com">#                    include directory of any dependencies.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="62" onclick="window.location.hash='#62'"></td><td class="FileContents-lineContents" id="62"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="63" onclick="window.location.hash='#63'"></td><td class="FileContents-lineContents" id="63"><span class="com"># Called if we failed to find Eigen or any of it&#39;s required dependencies,</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="64" onclick="window.location.hash='#64'"></td><td class="FileContents-lineContents" id="64"><span class="com"># unsets all public (designed to be used externally) variables and reports</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="65" onclick="window.location.hash='#65'"></td><td class="FileContents-lineContents" id="65"><span class="com"># error message at priority depending upon [REQUIRED/QUIET/&lt;NONE&gt;] argument.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="66" onclick="window.location.hash='#66'"></td><td class="FileContents-lineContents" id="66"><span class="pln">MACRO</span><span class="pun">(</span><span class="pln">EIGEN_REPORT_NOT_FOUND REASON_MSG</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="67" onclick="window.location.hash='#67'"></td><td class="FileContents-lineContents" id="67"><span class="pln">  UNSET</span><span class="pun">(</span><span class="pln">EIGEN_FOUND</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="68" onclick="window.location.hash='#68'"></td><td class="FileContents-lineContents" id="68"><span class="pln">  UNSET</span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIRS</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="69" onclick="window.location.hash='#69'"></td><td class="FileContents-lineContents" id="69"><span class="pln">  </span><span class="com"># Make results of search visible in the CMake GUI if Eigen has not</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="70" onclick="window.location.hash='#70'"></td><td class="FileContents-lineContents" id="70"><span class="pln">  </span><span class="com"># been found so that user does not have to toggle to advanced view.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="71" onclick="window.location.hash='#71'"></td><td class="FileContents-lineContents" id="71"><span class="pln">  MARK_AS_ADVANCED</span><span class="pun">(</span><span class="pln">CLEAR EIGEN_INCLUDE_DIR</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="72" onclick="window.location.hash='#72'"></td><td class="FileContents-lineContents" id="72"><span class="pln">  </span><span class="com"># Note &lt;package&gt;_FIND_[REQUIRED/QUIETLY] variables defined by FindPackage()</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="73" onclick="window.location.hash='#73'"></td><td class="FileContents-lineContents" id="73"><span class="pln">  </span><span class="com"># use the camelcase library name, not uppercase.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="74" onclick="window.location.hash='#74'"></td><td class="FileContents-lineContents" id="74"><span class="pln">  IF </span><span class="pun">(</span><span class="typ">Eigen_FIND_QUIETLY</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="75" onclick="window.location.hash='#75'"></td><td class="FileContents-lineContents" id="75"><span class="pln">    MESSAGE</span><span class="pun">(</span><span class="pln">STATUS </span><span class="str">&quot;Failed to find Eigen - &quot;</span><span class="pln"> $</span><span class="pun">{</span><span class="pln">REASON_MSG</span><span class="pun">}</span><span class="pln"> $</span><span class="pun">{</span><span class="pln">ARGN</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="76" onclick="window.location.hash='#76'"></td><td class="FileContents-lineContents" id="76"><span class="pln">  ELSEIF </span><span class="pun">(</span><span class="typ">Eigen_FIND_REQUIRED</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="77" onclick="window.location.hash='#77'"></td><td class="FileContents-lineContents" id="77"><span class="pln">    MESSAGE</span><span class="pun">(</span><span class="pln">FATAL_ERROR </span><span class="str">&quot;Failed to find Eigen - &quot;</span><span class="pln"> $</span><span class="pun">{</span><span class="pln">REASON_MSG</span><span class="pun">}</span><span class="pln"> $</span><span class="pun">{</span><span class="pln">ARGN</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="78" onclick="window.location.hash='#78'"></td><td class="FileContents-lineContents" id="78"><span class="pln">  ELSE</span><span class="pun">()</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="79" onclick="window.location.hash='#79'"></td><td class="FileContents-lineContents" id="79"><span class="pln">    </span><span class="com"># Neither QUIETLY nor REQUIRED, use no priority which emits a message</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="80" onclick="window.location.hash='#80'"></td><td class="FileContents-lineContents" id="80"><span class="pln">    </span><span class="com"># but continues configuration and allows generation.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="81" onclick="window.location.hash='#81'"></td><td class="FileContents-lineContents" id="81"><span class="pln">    MESSAGE</span><span class="pun">(</span><span class="str">&quot;-- Failed to find Eigen - &quot;</span><span class="pln"> $</span><span class="pun">{</span><span class="pln">REASON_MSG</span><span class="pun">}</span><span class="pln"> $</span><span class="pun">{</span><span class="pln">ARGN</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="82" onclick="window.location.hash='#82'"></td><td class="FileContents-lineContents" id="82"><span class="pln">  ENDIF </span><span class="pun">()</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="83" onclick="window.location.hash='#83'"></td><td class="FileContents-lineContents" id="83"><span class="pln">ENDMACRO</span><span class="pun">(</span><span class="pln">EIGEN_REPORT_NOT_FOUND</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="84" onclick="window.location.hash='#84'"></td><td class="FileContents-lineContents" id="84"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="85" onclick="window.location.hash='#85'"></td><td class="FileContents-lineContents" id="85"><span class="com"># Search user-installed locations first, so that we prefer user installs</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="86" onclick="window.location.hash='#86'"></td><td class="FileContents-lineContents" id="86"><span class="com"># to system installs where both exist.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="87" onclick="window.location.hash='#87'"></td><td class="FileContents-lineContents" id="87"><span class="com">#</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="88" onclick="window.location.hash='#88'"></td><td class="FileContents-lineContents" id="88"><span class="com"># TODO: Add standard Windows search locations for Eigen.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="89" onclick="window.location.hash='#89'"></td><td class="FileContents-lineContents" id="89"><span class="pln">LIST</span><span class="pun">(</span><span class="pln">APPEND EIGEN_CHECK_INCLUDE_DIRS</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="90" onclick="window.location.hash='#90'"></td><td class="FileContents-lineContents" id="90"><span class="pln">  </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">include</span><span class="pun">/</span><span class="pln">eigen3</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="91" onclick="window.location.hash='#91'"></td><td class="FileContents-lineContents" id="91"><span class="pln">  </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">homebrew</span><span class="pun">/</span><span class="pln">include</span><span class="pun">/</span><span class="pln">eigen3 </span><span class="com"># Mac OS X</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="92" onclick="window.location.hash='#92'"></td><td class="FileContents-lineContents" id="92"><span class="pln">  </span><span class="pun">/</span><span class="pln">opt</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">macports</span><span class="pun">/</span><span class="pln">software</span><span class="pun">/</span><span class="pln">eigen3 </span><span class="com"># Mac OS X.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="93" onclick="window.location.hash='#93'"></td><td class="FileContents-lineContents" id="93"><span class="pln">  </span><span class="pun">/</span><span class="pln">opt</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">include</span><span class="pun">/</span><span class="pln">eigen3</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="94" onclick="window.location.hash='#94'"></td><td class="FileContents-lineContents" id="94"><span class="pln">  </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">include</span><span class="pun">/</span><span class="pln">eigen3</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="95" onclick="window.location.hash='#95'"></td><td class="FileContents-lineContents" id="95"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="96" onclick="window.location.hash='#96'"></td><td class="FileContents-lineContents" id="96"><span class="com"># Search supplied hint directories first if supplied.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="97" onclick="window.location.hash='#97'"></td><td class="FileContents-lineContents" id="97"><span class="pln">FIND_PATH</span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="98" onclick="window.location.hash='#98'"></td><td class="FileContents-lineContents" id="98"><span class="pln">  NAMES </span><span class="typ">Eigen</span><span class="pun">/</span><span class="typ">Core</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="99" onclick="window.location.hash='#99'"></td><td class="FileContents-lineContents" id="99"><span class="pln">  PATHS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR_HINTS</span><span class="pun">}</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="100" onclick="window.location.hash='#100'"></td><td class="FileContents-lineContents" id="100"><span class="pln">  $</span><span class="pun">{</span><span class="pln">EIGEN_CHECK_INCLUDE_DIRS</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="101" onclick="window.location.hash='#101'"></td><td class="FileContents-lineContents" id="101"><span class="pln">IF </span><span class="pun">(</span><span class="pln">NOT EIGEN_INCLUDE_DIR</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="102" onclick="window.location.hash='#102'"></td><td class="FileContents-lineContents" id="102"><span class="pln">  </span><span class="com"># Handle case where user / CMAKE_PREFIX_PATH does not specify the</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="103" onclick="window.location.hash='#103'"></td><td class="FileContents-lineContents" id="103"><span class="pln">  </span><span class="com"># required eigen3 subdirectory, prepend it to search target and retry.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="104" onclick="window.location.hash='#104'"></td><td class="FileContents-lineContents" id="104"><span class="pln">  FIND_PATH</span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="105" onclick="window.location.hash='#105'"></td><td class="FileContents-lineContents" id="105"><span class="pln">    NAMES eigen3</span><span class="pun">/</span><span class="typ">Eigen</span><span class="pun">/</span><span class="typ">Core</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="106" onclick="window.location.hash='#106'"></td><td class="FileContents-lineContents" id="106"><span class="pln">    PATHS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR_HINTS</span><span class="pun">}</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="107" onclick="window.location.hash='#107'"></td><td class="FileContents-lineContents" id="107"><span class="pln">    $</span><span class="pun">{</span><span class="pln">EIGEN_CHECK_INCLUDE_DIRS</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="108" onclick="window.location.hash='#108'"></td><td class="FileContents-lineContents" id="108"><span class="pln">  IF </span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR AND EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="109" onclick="window.location.hash='#109'"></td><td class="FileContents-lineContents" id="109"><span class="pln">    UPDATE_CACHE_VARIABLE</span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR </span><span class="str">&quot;${EIGEN_INCLUDE_DIR}/eigen3&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="110" onclick="window.location.hash='#110'"></td><td class="FileContents-lineContents" id="110"><span class="pln">  ENDIF </span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR AND EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="111" onclick="window.location.hash='#111'"></td><td class="FileContents-lineContents" id="111"><span class="pln">ENDIF</span><span class="pun">(</span><span class="pln">NOT EIGEN_INCLUDE_DIR</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="112" onclick="window.location.hash='#112'"></td><td class="FileContents-lineContents" id="112"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="113" onclick="window.location.hash='#113'"></td><td class="FileContents-lineContents" id="113"><span class="pln">IF </span><span class="pun">(</span><span class="pln">NOT EIGEN_INCLUDE_DIR OR</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="114" onclick="window.location.hash='#114'"></td><td class="FileContents-lineContents" id="114"><span class="pln">    NOT EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="115" onclick="window.location.hash='#115'"></td><td class="FileContents-lineContents" id="115"><span class="pln">  EIGEN_REPORT_NOT_FOUND</span><span class="pun">(</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="116" onclick="window.location.hash='#116'"></td><td class="FileContents-lineContents" id="116"><span class="pln">    </span><span class="str">&quot;Could not find eigen3 include directory, set EIGEN_INCLUDE_DIR to &quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="117" onclick="window.location.hash='#117'"></td><td class="FileContents-lineContents" id="117"><span class="pln">    </span><span class="str">&quot;path to eigen3 include directory, e.g. /usr/local/include/eigen3.&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="118" onclick="window.location.hash='#118'"></td><td class="FileContents-lineContents" id="118"><span class="pln">ENDIF </span><span class="pun">(</span><span class="pln">NOT EIGEN_INCLUDE_DIR OR</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="119" onclick="window.location.hash='#119'"></td><td class="FileContents-lineContents" id="119"><span class="pln">       NOT EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="120" onclick="window.location.hash='#120'"></td><td class="FileContents-lineContents" id="120"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="121" onclick="window.location.hash='#121'"></td><td class="FileContents-lineContents" id="121"><span class="com"># Mark internally as found, then verify. EIGEN_REPORT_NOT_FOUND() unsets</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="122" onclick="window.location.hash='#122'"></td><td class="FileContents-lineContents" id="122"><span class="com"># if called.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="123" onclick="window.location.hash='#123'"></td><td class="FileContents-lineContents" id="123"><span class="pln">SET</span><span class="pun">(</span><span class="pln">EIGEN_FOUND TRUE</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="124" onclick="window.location.hash='#124'"></td><td class="FileContents-lineContents" id="124"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="125" onclick="window.location.hash='#125'"></td><td class="FileContents-lineContents" id="125"><span class="com"># Extract Eigen version from Eigen/src/Core/util/Macros.h</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="126" onclick="window.location.hash='#126'"></td><td class="FileContents-lineContents" id="126"><span class="pln">IF </span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="127" onclick="window.location.hash='#127'"></td><td class="FileContents-lineContents" id="127"><span class="pln">  SET</span><span class="pun">(</span><span class="pln">EIGEN_VERSION_FILE $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">}/</span><span class="typ">Eigen</span><span class="pun">/</span><span class="pln">src</span><span class="pun">/</span><span class="typ">Core</span><span class="pun">/</span><span class="pln">util</span><span class="pun">/</span><span class="typ">Macros</span><span class="pun">.</span><span class="pln">h</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="128" onclick="window.location.hash='#128'"></td><td class="FileContents-lineContents" id="128"><span class="pln">  IF </span><span class="pun">(</span><span class="pln">NOT EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_VERSION_FILE</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="129" onclick="window.location.hash='#129'"></td><td class="FileContents-lineContents" id="129"><span class="pln">    EIGEN_REPORT_NOT_FOUND</span><span class="pun">(</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="130" onclick="window.location.hash='#130'"></td><td class="FileContents-lineContents" id="130"><span class="pln">      </span><span class="str">&quot;Could not find file: ${EIGEN_VERSION_FILE} &quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="131" onclick="window.location.hash='#131'"></td><td class="FileContents-lineContents" id="131"><span class="pln">      </span><span class="str">&quot;containing version information in Eigen install located at: &quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="132" onclick="window.location.hash='#132'"></td><td class="FileContents-lineContents" id="132"><span class="pln">      </span><span class="str">&quot;${EIGEN_INCLUDE_DIR}.&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="133" onclick="window.location.hash='#133'"></td><td class="FileContents-lineContents" id="133"><span class="pln">  ELSE </span><span class="pun">(</span><span class="pln">NOT EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_VERSION_FILE</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="134" onclick="window.location.hash='#134'"></td><td class="FileContents-lineContents" id="134"><span class="pln">    FILE</span><span class="pun">(</span><span class="pln">READ $</span><span class="pun">{</span><span class="pln">EIGEN_VERSION_FILE</span><span class="pun">}</span><span class="pln"> EIGEN_VERSION_FILE_CONTENTS</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="135" onclick="window.location.hash='#135'"></td><td class="FileContents-lineContents" id="135"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="136" onclick="window.location.hash='#136'"></td><td class="FileContents-lineContents" id="136"><span class="pln">    STRING</span><span class="pun">(</span><span class="pln">REGEX MATCH </span><span class="str">&quot;#define EIGEN_WORLD_VERSION [0-9]+&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="137" onclick="window.location.hash='#137'"></td><td class="FileContents-lineContents" id="137"><span class="pln">      EIGEN_WORLD_VERSION </span><span class="str">&quot;${EIGEN_VERSION_FILE_CONTENTS}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="138" onclick="window.location.hash='#138'"></td><td class="FileContents-lineContents" id="138"><span class="pln">    STRING</span><span class="pun">(</span><span class="pln">REGEX REPLACE </span><span class="str">&quot;#define EIGEN_WORLD_VERSION ([0-9]+)&quot;</span><span class="pln"> </span><span class="str">&quot;\\1&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="139" onclick="window.location.hash='#139'"></td><td class="FileContents-lineContents" id="139"><span class="pln">      EIGEN_WORLD_VERSION </span><span class="str">&quot;${EIGEN_WORLD_VERSION}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="140" onclick="window.location.hash='#140'"></td><td class="FileContents-lineContents" id="140"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="141" onclick="window.location.hash='#141'"></td><td class="FileContents-lineContents" id="141"><span class="pln">    STRING</span><span class="pun">(</span><span class="pln">REGEX MATCH </span><span class="str">&quot;#define EIGEN_MAJOR_VERSION [0-9]+&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="142" onclick="window.location.hash='#142'"></td><td class="FileContents-lineContents" id="142"><span class="pln">      EIGEN_MAJOR_VERSION </span><span class="str">&quot;${EIGEN_VERSION_FILE_CONTENTS}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="143" onclick="window.location.hash='#143'"></td><td class="FileContents-lineContents" id="143"><span class="pln">    STRING</span><span class="pun">(</span><span class="pln">REGEX REPLACE </span><span class="str">&quot;#define EIGEN_MAJOR_VERSION ([0-9]+)&quot;</span><span class="pln"> </span><span class="str">&quot;\\1&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="144" onclick="window.location.hash='#144'"></td><td class="FileContents-lineContents" id="144"><span class="pln">      EIGEN_MAJOR_VERSION </span><span class="str">&quot;${EIGEN_MAJOR_VERSION}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="145" onclick="window.location.hash='#145'"></td><td class="FileContents-lineContents" id="145"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="146" onclick="window.location.hash='#146'"></td><td class="FileContents-lineContents" id="146"><span class="pln">    STRING</span><span class="pun">(</span><span class="pln">REGEX MATCH </span><span class="str">&quot;#define EIGEN_MINOR_VERSION [0-9]+&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="147" onclick="window.location.hash='#147'"></td><td class="FileContents-lineContents" id="147"><span class="pln">      EIGEN_MINOR_VERSION </span><span class="str">&quot;${EIGEN_VERSION_FILE_CONTENTS}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="148" onclick="window.location.hash='#148'"></td><td class="FileContents-lineContents" id="148"><span class="pln">    STRING</span><span class="pun">(</span><span class="pln">REGEX REPLACE </span><span class="str">&quot;#define EIGEN_MINOR_VERSION ([0-9]+)&quot;</span><span class="pln"> </span><span class="str">&quot;\\1&quot;</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="149" onclick="window.location.hash='#149'"></td><td class="FileContents-lineContents" id="149"><span class="pln">      EIGEN_MINOR_VERSION </span><span class="str">&quot;${EIGEN_MINOR_VERSION}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="150" onclick="window.location.hash='#150'"></td><td class="FileContents-lineContents" id="150"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="151" onclick="window.location.hash='#151'"></td><td class="FileContents-lineContents" id="151"><span class="pln">    </span><span class="com"># This is on a single line s/t CMake does not interpret it as a list of</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="152" onclick="window.location.hash='#152'"></td><td class="FileContents-lineContents" id="152"><span class="pln">    </span><span class="com"># elements and insert &#39;;&#39; separators which would result in 3.;2.;0 nonsense.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="153" onclick="window.location.hash='#153'"></td><td class="FileContents-lineContents" id="153"><span class="pln">    SET</span><span class="pun">(</span><span class="pln">EIGEN_VERSION </span><span class="str">&quot;${EIGEN_WORLD_VERSION}.${EIGEN_MAJOR_VERSION}.${EIGEN_MINOR_VERSION}&quot;</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="154" onclick="window.location.hash='#154'"></td><td class="FileContents-lineContents" id="154"><span class="pln">  ENDIF </span><span class="pun">(</span><span class="pln">NOT EXISTS $</span><span class="pun">{</span><span class="pln">EIGEN_VERSION_FILE</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="155" onclick="window.location.hash='#155'"></td><td class="FileContents-lineContents" id="155"><span class="pln">ENDIF </span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="156" onclick="window.location.hash='#156'"></td><td class="FileContents-lineContents" id="156"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="157" onclick="window.location.hash='#157'"></td><td class="FileContents-lineContents" id="157"><span class="com"># Set standard CMake FindPackage variables if found.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="158" onclick="window.location.hash='#158'"></td><td class="FileContents-lineContents" id="158"><span class="pln">IF </span><span class="pun">(</span><span class="pln">EIGEN_FOUND</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="159" onclick="window.location.hash='#159'"></td><td class="FileContents-lineContents" id="159"><span class="pln">  SET</span><span class="pun">(</span><span class="pln">EIGEN_INCLUDE_DIRS $</span><span class="pun">{</span><span class="pln">EIGEN_INCLUDE_DIR</span><span class="pun">})</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="160" onclick="window.location.hash='#160'"></td><td class="FileContents-lineContents" id="160"><span class="pln">ENDIF </span><span class="pun">(</span><span class="pln">EIGEN_FOUND</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="161" onclick="window.location.hash='#161'"></td><td class="FileContents-lineContents" id="161"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="162" onclick="window.location.hash='#162'"></td><td class="FileContents-lineContents" id="162"><span class="com"># Handle REQUIRED / QUIET optional arguments and version.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="163" onclick="window.location.hash='#163'"></td><td class="FileContents-lineContents" id="163"><span class="pln">INCLUDE</span><span class="pun">(</span><span class="typ">FindPackageHandleStandardArgs</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="164" onclick="window.location.hash='#164'"></td><td class="FileContents-lineContents" id="164"><span class="pln">FIND_PACKAGE_HANDLE_STANDARD_ARGS</span><span class="pun">(</span><span class="typ">Eigen</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="165" onclick="window.location.hash='#165'"></td><td class="FileContents-lineContents" id="165"><span class="pln">  REQUIRED_VARS EIGEN_INCLUDE_DIRS</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="166" onclick="window.location.hash='#166'"></td><td class="FileContents-lineContents" id="166"><span class="pln">  VERSION_VAR EIGEN_VERSION</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="167" onclick="window.location.hash='#167'"></td><td class="FileContents-lineContents" id="167"></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="168" onclick="window.location.hash='#168'"></td><td class="FileContents-lineContents" id="168"><span class="com"># Only mark internal variables as advanced if we found Eigen, otherwise</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="169" onclick="window.location.hash='#169'"></td><td class="FileContents-lineContents" id="169"><span class="com"># leave it visible in the standard GUI for the user to set manually.</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="170" onclick="window.location.hash='#170'"></td><td class="FileContents-lineContents" id="170"><span class="pln">IF </span><span class="pun">(</span><span class="pln">EIGEN_FOUND</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="171" onclick="window.location.hash='#171'"></td><td class="FileContents-lineContents" id="171"><span class="pln">  MARK_AS_ADVANCED</span><span class="pun">(</span><span class="pln">FORCE EIGEN_INCLUDE_DIR</span><span class="pun">)</span></td></tr><tr class="u-pre u-monospace FileContents-line"><td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="172" onclick="window.location.hash='#172'"></td><td class="FileContents-lineContents" id="172"><span class="pln">ENDIF </span><span class="pun">(</span><span class="pln">EIGEN_FOUND</span><span class="pun">)</span></td></tr></table></div> <!-- Container --></div> <!-- Site-content --><!-- default customFooter --><footer class="Site-footer"><div class="Footer"><span class="Footer-poweredBy">Powered by <a href="https://gerrit.googlesource.com/gitiles/">Gitiles</a></span><span class="Footer-formats"><a class="u-monospace Footer-formatsItem" href="?format=TEXT">txt</a> <a class="u-monospace Footer-formatsItem" href="?format=JSON">json</a></span></div></footer></body></html>