emsec / hal

HAL – The Hardware Analyzer
MIT License
624 stars 76 forks source link

make install from git fails (cannot find .../deps/spdlog-1.5.0) #520

Closed xiota closed 1 year ago

xiota commented 1 year ago

Describe the bug Running cmake DESTDIR="/path/to/dest" install fails with error:

CMake Error at cmake_install.cmake:93 (file):
  file INSTALL cannot find
  ".../deps/spdlog-1.5.0": No such file or directory.

To Reproduce Steps to reproduce the behavior:

git clone .../emsec/hal
mkdir -p hal/{build,pkgdir}
cd hal/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make DESTDIR="../pkgdir" install

Expected behavior Install should succeed.

Additional context

joern274 commented 1 year ago

Additionally to the fix provided by @theguy147 I added a cmake line so that libabc gets installed when compiled from deps. By now make install works for me.

Must admit that make install gets rarely tested since most users start the HAL binary directly from build directory.

xiota commented 1 year ago

Seems to work now when building from git.