Currently, docs are automatically build, if doxygen is being found. This
should be an option, as in Gentoo, we want to control this via use flag,
if someone wants to have docs, even, if doxygen is installed.
Default is still being yes, so it can be optionally disbled.
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
/usr should not be hardcoded, as otherwise this will cause a double
prefix during installation.
The correct prefix is already being handled by CMAKE_INSTALL_PREFIX.
Example:
>>> /usr/usr/bin/ebuspicloader
>>> /usr/usr/bin/ebusctl
>>> /usr/usr/bin/ebusd
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This disabled shared libs, as otherwise the compilation could fail.
The installed binary files are still dynamically linked, as this affects
only internal linking here.
Closes: https://github.com/john30/ebusd/issues/1132
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
CXXCLAGS needs to be quote, as otherwise the test could fail on some
CXXFLAGS like '-mfpmath=sse,387'
test: syntax error: `-mfpmath=sse,387' unexpected
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>