[CMake] How to set CPACK_SOURCE_IGNORE_FILES to remove all source code?

Eric Noulard eric.noulard at gmail.com
Mon Mar 9 16:05:28 EDT 2009


2009/3/9 David Fitzpatrick <fitzpatrick at stellarscience.com>:
> I have been working with CMake/CPack (2.6.2 and 2.6.3) for a few weeks now
> and have run into a problem with creating a binary distro using Cpack and
> NSIS. I would like to set a flag to remove all source code from the
> installer and have no success using the CPACK_SOURCE_IGNORE_FILES variable.

CPACK_SOURCE_IGNORE_FILES is the variables used to ignore files
usually bundled in "SOURCE package"

if you want to ignore files in a BINARY package you should use

CPACK_SOURCE_FILES

> And I still get files included in the installer...

try with CPACK_SOURCE_FILES


> Is it possible that the install( directory ... ) command and the
> ignore_files variable do not work together?
>
> This is a quick snippit of one of my install() commands that pulls
> directories:
>  INSTALL( DIRECTORY
> "${STELLAR_SANDBOX}/${CPACK_COMPONENT_${componentToInstall}_LOCATION}"
>   DESTINATION "${CPACK_COMPONENT_${componentToInstall}_LOCATION}/../"
>   COMPONENT "DevSource"
>   PATTERN ".svn" EXCLUDE )
>
> I know I could glob the different types of source together set the component
> to "DevSource_h" or the likes and then just not add it to the install_list
> but that will be allot more work...

I am a bit puzzled with your INSTALL command...

What are you doing with this?


-- 
Erk


More information about the CMake mailing list