<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<BR> <BR>We have an internal software product foo which is exported.<BR> <BR>A typical component:<BR>add_library(foo_library SHARED ...)<BR>target_link_libraries(foo_library <BR>  foo_common <BR>  foo_comp<BR>  ${Boost_LIBRARIES})<BR> <BR>When building the exported package a file name FooDepends-release.cmake is produced which contains;<BR>set_target_properties(foo_library PROPERTIES<BR>  IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/foo_library.lib"<BR>  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "foo_common;foo_comp;c:\boost\lib\boost_filesystem-vc110-mt-1_55.lib;")<BR> <BR>In another software product we use Find_Package command to find foo. Linking also works;<BR>add_library(bar-library SHARED ...)<BR>target_link_libraries(bar-library<BR>  foo_library<BR>  ${Boost_LIBRARIES})<BR> <BR>There is one problem with this setup and that is the IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE contains a static path to a boost lib. So the "c:\boost\lib\boost_filesystem-vc110-mt-1_55.lib" is appended to the linking of "bar-library" and this will fail if the path is incorrect. We cannot guarantee that boost is located at the same path on all Windows system. So how can we remove or update the boost path?<BR>Using CMake 2.8.12 on Windows 7.<BR> <BR>                                       </div></body>
</html>