stuart23 / cmake-OpenFOAM

Other
20 stars 1 forks source link

cmake linked libs not correctly linked #11

Closed stuart23 closed 7 years ago

stuart23 commented 7 years ago

libs in the cmake target_linklibraries are written incorrectly for linking system libs. Instead of linking the library by name, they MUST be linked by referencing to the library variable defined in the Find____.cmake

eg: target_link_library( ptscotchDecomp ${PTSCOTCH_LIBRARY} scotch )

Here ptscotch is correctly linked (the var is defined in the Find.cmake) but scotch is INCORRECTLY linked.

stuart23 commented 7 years ago

Done for externals