Currently I am setting RPATH using following syntax <br>SET(CMAKE_INSTALL_RPATH   &quot;${CMAKE_INSTALL_RPATH}:$ORIGIN/../lib&quot;)<br>It is working for the binary build using cmake. <br>Problem is that it is not working for third party binary I am building using cmake using their auto-configure script. I am using following command for configure <br>
<br>add_custom_target(<br>                            third_party_bin ALL <br>                           COMMAND ./configure <br>                            --with-ld-opt=\&quot;-Wl,-rpath,${CMAKE_INSTALL_RPATH}\&quot;<br>
                            --prefix=${CMAKE_INSTALL_PREFIX}<br>                           )<br><br>Make file generated by third path configure look likes <br><b>  &quot; -Wl,-rpath,&#39;:RIGIN/../lib&#39; -lstdc++&quot;</b><br>
<br>I think I need to escape ${CMAKE_INSTALL_RPATH} correctly. What is the correct way to escape  ${CMAKE_INSTALL_RPATH} for  other third party configure?<br><br><br clear="all">regards<div>Vivek Goel</div><br>