Include guards ensure that bootstrap includes happen only once for the entire project. Moving all policy changes into an included file without its own policy scope ensures that the policy is applied to the project.
12 lines
391 B
CMake
12 lines
391 B
CMake
# OBS CMake common CPack module
|
|
|
|
include_guard(GLOBAL)
|
|
|
|
# Set default global CPack variables
|
|
set(CPACK_PACKAGE_NAME obs-studio)
|
|
set(CPACK_PACKAGE_VENDOR "${OBS_WEBSITE}")
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${OBS_COMMENTS}")
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${OBS_VERSION_MAJOR})
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${OBS_VERSION_MINOR})
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${OBS_VERSION_PATCH})
|