Use cmake --install to avoid second compilation when installing

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2022-07-03 12:36:08 +02:00
parent be781122be
commit f05ec9c1f7
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ cmake --build . -- -j $(nproc)
if [[ -n "${install}" ]]; then
echo "Installing pihole-FTL"
SUDO=$(which sudo)
${SUDO} make install
${SUDO} cmake --install .
else
echo "Copying compiled pihole-FTL binary to repository root"
cp pihole-FTL ../