[cmake-developers] Preferred variable retrieval within Cpack generator.

Schwartz, Philip Marc (RIS-BCT) Philip.Schwartz at lexisnexis.com
Tue Mar 13 16:42:52 EDT 2012


I am close to completing the patch file, but have run into one issue that I am having trouble locating a where I am going wrong.

The condition is when you have installs that fall under 'Unspecified' but the CPACK_COMPONENT_NONAME_FOR is defined as an existing component.

The current issue is when I have a defined CPACK_COMPONENT_NONAME_FOR I want to disable packaging of 'Unspecified'. I have looked in the looping calls to GetComponent() in InstallProjectViaInstallCMakeProjects() and cannot determine the correct way of removing 'Unspecified' from packaging.

It appears as if the function controls which components should be installed, but adding code to remove or prevent 'Unspecified' from being installed does not appear to stop the component from being packaged.

Where is the component actually being added to the map<> Components and what is the best way to remove it?





More information about the cmake-developers mailing list