Currently I am setting RPATH using following syntax
SET(CMAKE_INSTALL_RPATH   "${CMAKE_INSTALL_RPATH}:$ORIGIN/../lib")
It is working for the binary build using cmake.
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

add_custom_target(
                            third_party_bin ALL
                           COMMAND ./configure

--with-ld-opt=\"-Wl,-rpath,${CMAKE_INSTALL_RPATH}\"
                            --prefix=${CMAKE_INSTALL_PREFIX}
                           )

Make file generated by third path configure look likes
*  " -Wl,-rpath,':RIGIN/../lib' -lstdc++"*

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?


regards
Vivek Goel
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to