Closed stuart23 closed 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.
Done for externals
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.