Currently I am setting RPATH using following syntax <br>SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:$ORIGIN/../lib")<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=\"-Wl,-rpath,${CMAKE_INSTALL_RPATH}\"<br>
--prefix=${CMAKE_INSTALL_PREFIX}<br> )<br><br>Make file generated by third path configure look likes <br><b> " -Wl,-rpath,':RIGIN/../lib' -lstdc++"</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>