Friday, 15 February 2013

CMake Error: TARGETS given no LIBRARY DESTINATION for shared library target -



CMake Error: TARGETS given no LIBRARY DESTINATION for shared library target -

when building opensource project cmake (in case, lemon graph library), got error when tried build shared libaries via -dbuild_shared_libs=1:

targets given no library destination shared library target

where error come , how prepare it?

i got error because project had cmakelists.txt file needed fixing. phone call cmake install command had archive parameter, no library parameter. in case, wanted libraries placed in 'lib', changing this:

install( targets lemon archive destination lib component library )

to this:

install( targets lemon archive destination lib library destination lib component library )

fixed problem.

cmake lemon-graph-library

No comments:

Post a Comment