<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I have put together a simple build system of which I have attached to this mail a small sample. The sample builds two binaries (bin1 & bin2) and two libraries (lib1 & lib2) so that bin1 depends on lib1, bin2 depends on lib2, and lib1 depends on lib2.<br><br>The build phase goes just fine but the installation step skips the bin1 and lib1 installation and I can't figure out why this happens. Following is the output of the build & install process.<br><br>Br,<br>Petri Hodju<br><br>----8<----8<----8<----8<----<br><br>host:~/misc/code/buildsys/make/build$ cmake ..<br>-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: /usr/bin/gcc<br>-- Check for working C compiler: /usr/bin/gcc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info -
done<br>-- Check for working CXX compiler: /usr/bin/c++<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- add_bin_dirs:<br>-- + /home/pho/misc/code/buildsys/make/../src/bin/bin1<br>-- + /home/pho/misc/code/buildsys/make/../src/bin/bin2<br>-- add_lib_dirs:<br>-- + /home/pho/misc/code/buildsys/make/../src/lib/lib1<br>-- + /home/pho/misc/code/buildsys/make/../src/lib/lib2<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/pho/misc/code/buildsys/make/build<br>host:~/misc/code/buildsys/make/build$ make<br>Scanning dependencies of target lib2hdrs<br>[ 0%] ln -sf /home/pho/misc/code/buildsys/src/lib/lib2/lib2.h /home/pho/misc/code/buildsys/make/../inc/lib2.h<br>[ 16%] Built target lib2hdrs<br>Scanning dependencies of target lib2<br>[ 33%] Building CXX object
/home/pho/misc/code/buildsys/lib/CMakeFiles/lib2.dir/lib2.cc.o<br>Linking CXX shared library liblib2.so<br>[ 33%] Built target lib2<br>Scanning dependencies of target bin2<br>[ 50%] Building CXX object /home/pho/misc/code/buildsys/bin/CMakeFiles/bin2.dir/bin2.cc.o<br>Linking CXX executable bin2<br>[ 50%] Built target bin2<br>Scanning dependencies of target lib1hdrs<br>[ 50%] ln -sf /home/pho/misc/code/buildsys/src/lib/lib1/lib1.h /home/pho/misc/code/buildsys/make/../inc/lib1.h<br>[ 66%] Built target lib1hdrs<br>Scanning dependencies of target lib1<br>[ 83%] Building CXX object /home/pho/misc/code/buildsys/lib/CMakeFiles/lib1.dir/lib1.cc.o<br>Linking CXX shared library liblib1.so<br>[ 83%] Built target lib1<br>Scanning dependencies of target hdr<br>[ 83%] Built target hdr<br>Scanning dependencies of target lib<br>[ 83%] Built target lib<br>Scanning dependencies of target bin1<br>[100%] Building CXX object
/home/pho/misc/code/buildsys/bin/CMakeFiles/bin1.dir/bin1.cc.o<br>Linking CXX executable bin1<br>[100%] Built target bin1<br>Scanning dependencies of target bin<br>[100%] Built target bin<br>Scanning dependencies of target project<br>[100%] Built target project<br>host:~/misc/code/buildsys/make/build$ make install<br>[ 16%] Built target lib2hdrs<br>[ 33%] Built target lib2<br>[ 50%] Built target bin2<br>[ 66%] Built target lib1hdrs<br>[ 83%] Built target lib1<br>[ 83%] Built target hdr<br>[ 83%] Built target lib<br>[100%] Built target bin1<br>[100%] Built target bin<br>[100%] Built target project<br>Install the project...<br>-- Install configuration: ""<br>-- Installing: /home/pho/misc/code/buildsys/make/../ins/bin/bin2<br>-- Set runtime path of "/home/pho/misc/code/buildsys/make/../ins/bin/bin2" to "/home/pho/misc/code/buildsys/make/../ins/lib"<br>-- Up-to-date: /home/pho/misc/code/buildsys/make/../ins/bin/bin2<br>-- Installing:
/home/pho/misc/code/buildsys/make/../ins/lib/liblib2.so<br>-- Set runtime path of "/home/pho/misc/code/buildsys/make/../ins/lib/liblib2.so" to "/home/pho/misc/code/buildsys/make/../ins/lib"<br>-- Up-to-date: /home/pho/misc/code/buildsys/make/../ins/lib/liblib2.so<br>host:~/misc/code/buildsys/make/build$ <br><br>----8<----8<----8<----8<----<br>
<br><br></td></tr></table><br>