On Tue, May 19, 2009 at 05:38:15PM +0530, ankit jain wrote:
> add_executable(myexe  main.c ${myobj})
> 
> main.obj: warning: earlier declaration of a function f1() found in
> myfile.obj: second definition ignored..
> 
> This means it is taking the f1() function from myfile.obj but i want f1()
> function to be taken from main.obj..

Did you try changing the order to:

    add_executable(myexe  ${myobj} main.c)

?

tyler
_______________________________________________
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