Skip to content

Commit

Permalink
Add basic CPack support
Browse files Browse the repository at this point in the history
@ThijsWithaar is responsible for giving me the idea, but his PR
had couple of things that meant it was simpler to rewrite it than
to fix and merge it.

Supersedes and closes #1599
  • Loading branch information
horenmar committed Apr 18, 2019
1 parent 79417b9 commit c765381
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,15 @@ if (NOT_SUBPROJECT)
${PKGCONFIG_INSTALL_DIR}
)

# CPack/CMake started taking the package version from project version 3.12
# So we need to set the version manually for older CMake versions
if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
endif()

set(CPACK_PACKAGE_CONTACT "https://github.com/catchorg/Catch2/")


include( CPack )

endif(NOT_SUBPROJECT)

0 comments on commit c765381

Please sign in to comment.