clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 8aaf462c8a0c586e6b3bfa9789a0b3028e4191cf
parent 84cb8116063ff59e80d298979dc0861f10f1a083
Author: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date:   Thu,  3 Nov 2022 14:27:08 +0100

Fix CMake install command

Headers should be installed to the correct includes directory. `"."`
installs the installation prefix root, and `OPTIONAL EXCLUDE_FROM_ALL`
causes the headers to just not be installed.

Diffstat:
MCMakeLists.txt | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -10,7 +10,8 @@ option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF) add_library(clap-core INTERFACE) target_include_directories(clap-core INTERFACE include) -install(DIRECTORY include DESTINATION "." OPTIONAL EXCLUDE_FROM_ALL) +include(GNUInstallDirs) +install(DIRECTORY "include/clap" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") # clap-tests should always be available, to avoid build failing here and there # because the target doesn't exists