Fix CMAKE_INSTALL_INCLUDEDIR not being defined (#690) Fixes #689

This commit is contained in:
Jean-Michaël Celerier 2022-02-17 02:27:55 +01:00 committed by GitHub
parent d9908c9da0
commit 8dc2512a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,9 @@ add_library(PortAudio
src/common/pa_types.h
src/common/pa_util.h
)
include(GNUInstallDirs)
target_include_directories(PortAudio PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/common>
@ -96,8 +99,6 @@ endif()
include(CMakeDependentOption)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
include(GNUInstallDirs)
# JACK is most commonly used on Linux, but it is cross platform, so allow building it on any OS
# if the FindJACK.cmake module finds POSIX headers.
find_package(JACK)