<div>If I use Cmake to make a library where the source files are exclusively header files (*.h) then I get a message saying it cannot determine the language to use&nbsp; - which is correct. </div>
<div>The way I get around this is to have a dummy cpp file. This then tells CMake what language to use because it sees the .cpp extension and assumes the commpiler is&nbsp;a c++ compiler.. </div>
<div>&nbsp;</div>
<div>Is there another way to tell CMake that the library should be linked as C++? I am wondering if there is a SET_SOURCE_FILES_PROPERTIES() or something like that I can use.</div>
<div>&nbsp;</div>
<div>I suspect I can use .hpp&nbsp;as the extension but I don't really want to ebcause too much other code depends upon the header files.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Andrew</div>
<div><br clear="all"><br>-- <br><br>___________________________________________<br>Andrew J. P. Maclean<br>Centre for Autonomous Systems<br>The Rose Street Building J04<br>The University of Sydney&nbsp;&nbsp;2006&nbsp;&nbsp;NSW<br>AUSTRALIA
<br>Ph: +61 2 9351 3283<br>Fax: +61 2 9351 7474<br>URL: <a href="http://www.cas.edu.au/">http://www.cas.edu.au/</a><br>___________________________________________<br>&nbsp;</div>