Warning, /geant4/cmake/Templates/source_package_extras.cmake.in is written in an unsupported language. File is not indexed.
0001 # Only run for source packaging
0002 if(CPACK_SOURCE_INSTALLED_DIRECTORIES)
0003 # Copy any additional files needed in source package that we need to generate
0004 # or otherwise aren't present directly in the source directory.
0005 set(GEANT4_CPACK_SOURCE_EXTRAS "@PROJECT_BINARY_DIR@/_source_extras")
0006 file(INSTALL "${GEANT4_CPACK_SOURCE_EXTRAS}/" DESTINATION "${CMAKE_INSTALL_PREFIX}")
0007
0008 # Cross-check that we are not packaging up a modified source dir, and
0009 # that there are no additional untracked files since we configured.
0010 include("@PROJECT_SOURCE_DIR@/cmake/Modules/G4GitUtilities.cmake")
0011 geant4_git_find_dirty("@PROJECT_SOURCE_DIR@" _currently_modded _currently_untracked)
0012
0013 if(_currently_modded)
0014 message(WARNING "Modified files found in source directory: run `git status` for more information on these files.")
0015 endif()
0016
0017 foreach(_ut ${_currently_untracked})
0018 list(FIND CPACK_SOURCE_IGNORE_FILES "${_ut}" _is_found)
0019 if(_is_found LESS 0)
0020 message(WARNING "New untracked file found in source tree: '${_ut}'. Re-run cmake before trying to package, or remove the file.")
0021 endif()
0022 endforeach()
0023 endif()