Commit 2b72110d authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: support suppressing CPack usage

parent dd1f0962
...@@ -346,17 +346,20 @@ install(EXPORT ${VTKm_EXPORT_NAME} ...@@ -346,17 +346,20 @@ install(EXPORT ${VTKm_EXPORT_NAME}
FILE VTKmTargets.cmake FILE VTKmTargets.cmake
) )
# Enable CPack packaging vtkm_option(VTKm_ENABLE_CPACK "Enable CPack packaging of VTKm" ON)
set(CPACK_PACKAGE_DESCRIPTION_FILE ${VTKm_SOURCE_DIR}/README.md) if (VTKm_ENABLE_CPACK)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The VTKm Toolkit") # Enable CPack packaging
set(CPACK_PACKAGE_NAME "VTKm") set(CPACK_PACKAGE_DESCRIPTION_FILE ${VTKm_SOURCE_DIR}/README.md)
set(CPACK_PACKAGE_VERSION_MAJOR ${VTKm_VERSION_MAJOR}) set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The VTKm Toolkit")
set(CPACK_PACKAGE_VERSION_MINOR ${VTKm_VERSION_MINOR}) set(CPACK_PACKAGE_NAME "VTKm")
set(CPACK_PACKAGE_VERSION_PATCH ${VTKm_VERSION_PATCH}) set(CPACK_PACKAGE_VERSION_MAJOR ${VTKm_VERSION_MAJOR})
set(CPACK_PACKAGE_FILE_NAME "VTKm-${VTKm_VERSION}") set(CPACK_PACKAGE_VERSION_MINOR ${VTKm_VERSION_MINOR})
set(CPACK_RESOURCE_FILE_LICENSE ${VTKm_SOURCE_DIR}/LICENSE.txt) set(CPACK_PACKAGE_VERSION_PATCH ${VTKm_VERSION_PATCH})
set(CPACK_RESOURCE_FILE_README ${VTKm_SOURCE_DIR}/README.md) set(CPACK_PACKAGE_FILE_NAME "VTKm-${VTKm_VERSION}")
include(CPack) set(CPACK_RESOURCE_FILE_LICENSE ${VTKm_SOURCE_DIR}/LICENSE.txt)
set(CPACK_RESOURCE_FILE_README ${VTKm_SOURCE_DIR}/README.md)
include(CPack)
endif ()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Build examples # Build examples
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment