Only install cmake source files on AJA_INSTALL_SOURCES

Installing headers along with generated libraries is a common usecase,
and should not result in installing CMake source files.
pull/27/head
Alexis Girault 2022-04-28 17:22:05 -04:00
parent 5eb1f57a70
commit 06a5997455
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ if (AJA_BUILD_NONAJA AND EXISTS ${NON_AJA_ROOT})
endif()
# Install NTV2 CMake files
if (AJA_INSTALL_HEADERS OR AJA_INSTALL_SOURCES)
if (AJA_INSTALL_SOURCES)
install(FILES cmake/AJABuildOptions.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/cmake)
install(FILES cmake/AJACommonDefines.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/cmake)
install(FILES cmake/AJACommonFlags.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/cmake)