<div dir="ltr">I'm having an issue building a child project through my master project where the child project is an "External Project" which is automatically built using CMake's "ExternalProject_Add" feature if it is not found (using "FindChildProject.cmake"). The error message happens during installing of the child project after running my cmake and make command.<div><br></div><div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">make -j8</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[  1%] Performing update step for 'ext_dawg'</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[  2%] Performing configure step for 'ext_dawg'</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Compiling with build type 'Release'.</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">--  version: 1.1.2-429-g56f23c7.</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Boost version: 1.58.0</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Found the following Boost libraries:</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">--   program_options</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">--   unit_test_framework</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 89%] Built target phylogenyLib</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Configuring done</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Generating done</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Build files have been written to: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 89%] Performing build step for 'ext_dawg'</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 87%] Built target libdawg2-static</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 87%] Built target libdawg2</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 87%] Built target version</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[100%] Built target dawg</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 89%] Performing install step for 'ext_dawg'</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 87%] Built target libdawg2</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 87%] Built target libdawg2-static</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[ 87%] Built target version</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">[100%] Built target dawg</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">Install the project...</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Install configuration: "Release"</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/doc/dawg-2/copying.txt</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/doc/dawg-2/readme.txt</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/doc/dawg-2/changelog.txt</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/share/dawg-2/<a href="http://lambda.pl">lambda.pl</a></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/share/dawg-2/<a href="http://outsplit.pl">outsplit.pl</a></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/share/dawg-2/<a href="http://nexus2fasta.pl">nexus2fasta.pl</a></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Up-to-date: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/share/dawg-2/<a href="http://varrep.pl">varrep.pl</a></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">-- Installing: /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/bin/dawg</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">CMake Error at src/cmake_install.cmake:45 (file):</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">  file RPATH_CHANGE could not write new RPATH:</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">    /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/lib</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">  to the file:</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">    /home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/bin/dawg</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">  No valid ELF RPATH or RUNPATH entry exists in the file;</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">Call Stack (most recent call first):</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">  cmake_install.cmake:64 (include)</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)"><br></font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">Makefile:116: recipe for target 'install' failed</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">make[3]: *** [install] Error 1</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">CMakeFiles/ext_dawg.dir/build.make:74: recipe for target 'ext_deps/ext_dawg-stamp/ext_dawg-install' failed</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">make[2]: *** [ext_deps/ext_dawg-stamp/ext_dawg-install] Error 2</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/ext_dawg.dir/all' failed</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">make[1]: *** [CMakeFiles/ext_dawg.dir/all] Error 2</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">Makefile:127: recipe for target 'all' failed</font></i></div><div><i><font color="#00ff00" style="background-color:rgb(0,0,255)">make: *** [all] Error 2</font></i></div></div><div><br></div><div>----------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>This child project can be built alone with no issues (it will install as well), but it can't seem to be built as an external project due to the RPATH error message above. Do I need to modify the RPATH settings from the master project or how can I specify the order of installation such that the libs are installed before the bin?</div><div><br></div><div>The static library, libdawg2.a, which is trying to be linked to the executable in the error message above, is built in "/home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/src/lib", but is installed to "/home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/lib" where the executable in "/home/hendrix/repo/spartaabc-personal/build/ext_deps/ext_dawg-build/bin" needs to set it's RPATH. </div><div><br></div><div>And like I said I can build this child project alone, it's RPATH is set to "<CMAKE_INSTALL_PREFIX>/lib" in it's respective CMakeLists.txt file.</div><div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Zach Mertens<div><a href="mailto:zmertens@asu.edu" target="_blank">zmertens@asu.edu</a></div></div></div>
</div></div></div>