2010/11/3 Bill Hoffman <bill.hoff...@kitware.com>:
>
> The reason this is showing up is because they are compiling a .h file:
>
> LIST(APPEND LIBHLA_EXPORTED_INCLUDES sha1.h)
> set_source_files_properties(sha1.c sha1.h PROPERTIES LANGUAGE "C")
> SOURCE_GROUP("Source Files\\Hash" FILES ${LIBHLA_HASH_SRCS})
>
>
> The sha1.h is being set to a C source file.  It is a bug, and the patch
> should fix it.

I'll try the patch.

> However, seems odd to be compiling a .h file.

What do you mean by "compiling" a header?

I usually do

add_library(mylib file1.c file1.h file2.c file2.h)
or
add_executable(myexe mysource.c anyother.h)
etc...

what's wrong/odd with that I thought CMake would sort it out
what is an header and what is not ?

Or do you mean that the
set_source_files_properties(sha1.c sha1.h PROPERTIES LANGUAGE "C")

is telling CMake that "sha1.h" should be compiled?

I thought I was (because I'm the culprit) telling CMake that thoses file
were C files (either header or to-be-compiled sources)?

Am I wrong?


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to