[CMake] make package_source and binary subdir of source
Hendrik Sattler
post at hendrik-sattler.de
Fri Mar 7 12:18:00 EST 2008
Am Freitag 07 März 2008 schrieb Eric Noulard:
> The following should do the trick:
> SET(CPACK_SOURCE_IGNORE_FILES "${CMAKE_BINARY_DIR}/*")
>
> but may CPack should automatically add ${CMAKE_BINARY_DIR}/*
> to CPACK_SOURCE_IGNORE_FILES?
Not really. At least it should check for CMAKE_BINARY_DIR != CMAKE_SOURCE_DIR
in this case.
It could be a lot smarter when being used in a VCS tree by including only
files that are version-controlled. OTOH, always making this right
automatically seems to be an impossible task.
HS
More information about the CMake
mailing list