<div dir="ltr"><div><br></div><div>I have an outdated version of &quot;Mastering CMake&quot; book (for CMake version 2.2). &nbsp; Referring to section 6.7 &quot;Creating a &lt;Package&gt;Config.cmake file&quot;, &nbsp;the configure step contains the following:</div>
<div><br></div><div>GET_TARGET_PROPERTY( GROMIT_LIBRARY Gromit LOCATION )&nbsp;</div><div><br></div><div>where Gromit is the library target and GROMIT_LIBRARY is the variable to be used by CONFIGURE_FILE( &nbsp;<a href="http://GromitConfig.cmake.in">GromitConfig.cmake.in</a> &nbsp;... ) command. The problem is that&nbsp;the LOCATION property is deprecated in CMake 2.6&nbsp;(see <a href="http://www.cmake.org/HTML/cmake-2.6.html#prop_tgt:LOCATION">http://www.cmake.org/HTML/cmake-2.6.html#prop_tgt:LOCATION</a> ), for reasons which seems to exclude this particular use.&nbsp;</div>
<div><br></div><div>So, what is the correct way to create config files for a library project?</div><div><br></div><div>thx,</div><div>Levent</div><div><br></div>-- <br>Server Levent Yilmaz<br>Mechanical Engineering<br>University of Pittsburgh<br>
<br>
</div>