[CMake] Unlinking a library at run time for an executable
ankit jain
ankitguddu at gmail.com
Fri Feb 27 04:49:50 EST 2009
Hi ,
I have defined a variable for a set of libraries that i want to link with
some executables.
But with one executble i dont want to use one of the library from the set of
libraries.
Can i unlink that particular library for this executable since iam using a
variable for all those libraries.
Eg: Folder main Cmakelist
set( var
path/l1.so
path/l1.so
path/l2.so
path/l3.so
path/l4.so
path/l5.so
path/l6.so
path/l7.so
path/l8.so
path/l9.so)
add_subdirectory(f1)
add_subdirectory(f2)
f1....
...a1.C
CMakeList for f1 contains:
add_executable(a1 a1.C)
target_link_libraries(a1 ${var})
f2....
...a2.C
CMakeList for f2 contains:
add_executable(a2 a2.C)
Now for this i dont want the l9 library. one way is to explicitly link all
the other libraries.
Is there any other way by which i can specifically unlink this library l9 or
say able to link only other libraries.
Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090227/fcbb176c/attachment.htm>
More information about the CMake
mailing list