Sorry, I should have been clearer in my last post. I also
tried escaping the value I put into CMAKE_INSTALL_RPATH but
CMake successfully fought me off. Below are some of the
results for an installed executable. Each "SET" is followed
by the rpath that actually made it to the executable:

   SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:\$ORIGIN/xxx")
   Library rpath: [/home/iker/tmp/rpath_test/:RIGIN/xxx]

   SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:$$ORIGIN/xxx")
   Library rpath: [/home/iker/tmp/rpath_test/:/xxx]

   SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:\\$ORIGIN/xxx")
   Library rpath: [/home/iker/tmp/rpath_test/:/RIGIN/xxx]

   SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:\\$$ORIGIN/xxx")
   Library rpath: [/home/iker/tmp/rpath_test/://xxx]

Iker

James Bigler wrote:
I asked if you had tried various permutations of escapes with the original command [SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:$ORIGIN/../xxx")] not the ones with the hard coded -Wl,-rpath. From your original email it appears you only tried various permutations with the setting the linker path directly:


--
Iker Arizmendi
AT&T Labs - Research
Speech and Image Processing Lab
e: [EMAIL PROTECTED]
w: http://research.att.com
p: 973-360-8516

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to