<div dir="ltr"><div><br></div><div>I have an outdated version of "Mastering CMake" book (for CMake version 2.2). Referring to section 6.7 "Creating a <Package>Config.cmake file", the configure step contains the following:</div>
<div><br></div><div>GET_TARGET_PROPERTY( GROMIT_LIBRARY Gromit LOCATION ) </div><div><br></div><div>where Gromit is the library target and GROMIT_LIBRARY is the variable to be used by CONFIGURE_FILE( <a href="http://GromitConfig.cmake.in">GromitConfig.cmake.in</a> ... ) command. The problem is that the LOCATION property is deprecated in CMake 2.6 (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. </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>