[CMake] Does FindMPI affects INSTALL_RPATH?

Knut Klingbeil knut.klingbeil at io-warnemuende.de
Sun Mar 3 15:21:05 EST 2019


Dear list,

sorry for possible double-posting... first post sent before confirming 
the subscription request :-)


I have to use some rpath information that is stored in the LDFLAGS 
environment variable of the hosting system. A serial compilation works 
fine, the rpath is correctly set in the build and install binary.

However, changing to a parallel compilation and using FindMPI, the rpath 
is only available in the build binary. I can fix it by manually setting 
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON, but is this on purpose?

Thanks and Cheers, Knut

-- 
Dr. Knut Klingbeil

Dept. for Physical Oceanography and Instrumentation
Leibniz Institute for Baltic Sea Research
Seestrasse 15
18119 Rostock-Warnemuende, Germany
http://www.io-warnemuende.de/kk.html

mail : knut.klingbeil at io-warnemuende.de
phone: +49 - 381 - 5197 - 153
fax  : +49 - 381 - 5197 - 114



More information about the CMake mailing list