From 4dd1da8a1edf51fdc8162e6501fbb45783940423 Mon Sep 17 00:00:00 2001 From: tytan652 Date: Tue, 19 Jul 2022 16:07:36 +0200 Subject: [PATCH] cmake: Add EXCLUDE_FROM_ALL to Linux install_headers Even without it, we still need to run the following command for other files: `cmake --install . --component obs_libraries` --- cmake/Modules/ObsHelpers_Linux.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake/Modules/ObsHelpers_Linux.cmake b/cmake/Modules/ObsHelpers_Linux.cmake index a4c663eb9..66b80b7dc 100644 --- a/cmake/Modules/ObsHelpers_Linux.cmake +++ b/cmake/Modules/ObsHelpers_Linux.cmake @@ -93,20 +93,23 @@ function(install_headers target) FILES "${CMAKE_CURRENT_SOURCE_DIR}/audio-monitoring/pulse/pulseaudio-wrapper.h" DESTINATION "${OBS_INCLUDE_DESTINATION}/audio-monitoring/pulse/" - COMPONENT obs_libraries) + COMPONENT obs_libraries + EXCLUDE_FROM_ALL) endif() if(ENABLE_HEVC) install( FILES "${CMAKE_CURRENT_SOURCE_DIR}/obs-hevc.h" DESTINATION "${OBS_INCLUDE_DESTINATION}" - COMPONENT obs_libraries) + COMPONENT obs_libraries + EXCLUDE_FROM_ALL) endif() if(NOT EXISTS "${OBS_INCLUDE_DESTINATION}/obsconfig.h") install( FILES "${CMAKE_BINARY_DIR}/config/obsconfig.h" DESTINATION "${OBS_INCLUDE_DESTINATION}" - COMPONENT obs_libraries) + COMPONENT obs_libraries + EXCLUDE_FROM_ALL) endif() endfunction()