0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

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`
This commit is contained in:
tytan652 2022-07-19 16:07:36 +02:00 committed by Ryan Foster
parent 2ba32763e5
commit 4dd1da8a1e

View File

@ -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()