From 32fda841f0775056775273cf9b96ed4f141886a7 Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Wed, 21 Aug 2024 11:43:19 +0800 Subject: [PATCH] Remove DESTINATION from target installs Not specifying them is better than doing it, since they default to sane values, while still allowing users to provide custom relative paths based on the installation prefix. Signed-off-by: Rodrigo Tobar --- src/apps/CMakeLists.txt | 1 - src/profit/CMakeLists.txt | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt index e031d0c..dad5332 100644 --- a/src/apps/CMakeLists.txt +++ b/src/apps/CMakeLists.txt @@ -29,7 +29,6 @@ endif() install(TARGETS profit-cli EXPORT profit-targets - RUNTIME DESTINATION bin ) if (LIBPROFIT_TEST) diff --git a/src/profit/CMakeLists.txt b/src/profit/CMakeLists.txt index 8cdb0ef..2e791e1 100644 --- a/src/profit/CMakeLists.txt +++ b/src/profit/CMakeLists.txt @@ -128,8 +128,6 @@ target_include_directories(profit PRIVATE ${PROFIT_INCLUDE_DIRS}) # install(TARGETS profit EXPORT profit-targets - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib ) install(FILES ${PUBLIC_HEADERS}