Skip to content

Commit

Permalink
Add CPACK_SOURCE_IGNORE_FILES
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 7, 2020
1 parent 73e3dc7 commit cf176f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ set(CPACK_SOURCE_STRIP_FILES YES)
if (LFORTRAN_VERSION STREQUAL "0.1.1")
set(CPACK_SOURCE_PACKAGE_FILE_NAME lfortran-git-Source)
endif()
set(CPACK_SOURCE_IGNORE_FILES
/.git
/build
/grammar
/tests
/doc
/ci
/appveyor.yml
/azure-pipelines.yml
/test_lfort
/run_tests.py
/integration_tests
/compiler_tester
/setup.py # remove from git
/show_ast.py # remove from git
/MANIFEST.in # remove from git
)
include(CPack)
# So that CPACK_PACKAGE_FILE_NAME prints the correct value below
if (LFORTRAN_VERSION STREQUAL "0.1.1")
Expand Down

0 comments on commit cf176f6

Please sign in to comment.