[CMake] porting to cmake 2.6 from 2.4.6

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Jun 19 02:23:21 EDT 2008


> Von: "David Blado"
> Hi all,
> 
> I recently took up the task of porting to 2.6 (again…fell off my plate
> for a while ☺ )
> 
> I’m seeing this when running cmake:
> CMake Error: Cannot determine link language for target "libraryX".
> 
> All of the source files listed are cpp files:
> SET(SRCS
>   fileA
> )
> 
> fileA is really fileA.cpp but I’ve noticed that I can ignore the .cpp
> extension and CMake will find it.
> 
Here you answered your question by your own - don't forget to add the .cpp extension. I would say that it worked with 2.4 was by accident. I can't find any documentation which says that this is possible.


Christian
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx


More information about the CMake mailing list