2009/3/9 David Fitzpatrick <fitzpatr...@stellarscience.com>: > Thanks for the reply Eric, > > Let me clarify a few things. By binary distro I was implying an installer > package without the source code. It is true that my install commands do pull > in directories that have source code (with INSTALL( DIRECTORY bar/) ) and > header files (with INSTALL(FILE foo.h)) explicitly but I was hoping I could > just set the CPACK_SOURCE_IGNORE_FILES variable to remove the source files > (foo.h and bar/*.c and bar/*.h) . I have not been successful in getting this > tact to work. > > So I ran a quick test setting the ignore value value to > SET( CPACK_SOURCE_IGNORE_FILES "" ) > AND > SET( CPACK_SOURCE_IGNORE_FILES > ".*hpp$" > ".*h$" > ".*cpp$" > ".*cxx$" > ".*c$" ) > > Saving the CmakeLists.txt file and doing a complete rebuild and cpack... > ultimately with no difference to the output installer. This all seems so > simple and perhaps there is a critical piece I am missing but I don't > understand how both examples above have no effect while I still have an > installer that extracts many .cpp's and .h's... > > From you comments: > I don't see any documentation or references in the mailing list to: > CPACK_SOURCE_FILES > What is this? It is currently empty when I print it out at the end of my > CMakeLists.txt file.
My mistake, I've cut the wrong part, sorry about that CPACK_SOURCE_FILES was meant to be CPACK_IGNORE_FILES you want to ignore files in BINARY package so the var to use is CPACK_IGNORE_FILES when you want to ignore files in a SOURCE pacakge then you should use CPACK_SOURCE_IGNORE_FILES -- Erk _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake