[CMake] regarding linking functionality and overloading in cmake

aaron.meadows at thomsonreuters.com aaron.meadows at thomsonreuters.com
Thu Jun 23 11:29:03 EDT 2011


This sounds like poorly formed c++, not a CMake issue.  Can you include
your CMakeLists.txt, a copy of the error, and possibly a simple example
which shows the problem?

 

Aaron C. Meadows 

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Leila Baghdadi
Sent: Wednesday, June 22, 2011 3:57 PM
To: cmake at cmake.org
Subject: [CMake] regarding linking functionality and overloading in
cmake

 

hi everyone,

I have been trying to use cmake to build ctsim(need to add my own code
to it later) and finally managed to do it however I have difficulty
understanding why my puny solution works!

I have 3 different directories (a,b,c) in ctsim , so I set up cmake
files in each one and built liba.so and so on,

now I am trying to build the executable cstim by linking to the above
three libraries and I kept getting an error, regarding an overloading
function in directory a,

I thought that using TARGET_LINK_LIBRARIES(target a b c) would address
that but instead I had to add the source code with the overloading
function from directory a into the list of source codes for the ctsim
executable,

does that make sense? 

any thought 

thanks

Leila

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110623/1da168dd/attachment-0001.htm>


More information about the CMake mailing list