MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014819 | CMake | CMake | public | 2014-03-20 04:44 | 2014-11-03 08:38 |
Reporter | Richard Ulrich | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.12.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014819: excluding ARCHIVE part of library target from install | ||||
Description | When building shared libraries on windows, I can specify the install location for the dll and lib file like this: INSTALL(TARGETS MyLib RUNTIME DESTINATION bin # -> dll LIBRARY DESTINATION lib ARCHIVE DESTINATION lib # -> lib COMPONENT base ) Now I should exclude the lib files from the generated installer. As long as we used an external installer builder that I invoked with ADD_CUSTOM_TARGET(), I just executed an ADD_CUSTOM_COMMAND() just before, that deleted the lib files from the install directory. But now that we use cpack to generate the installer, there is no suc interception point anymore. So the next thing I tried was what I found in http://stackoverflow.com/questions/8636479/postpone-making-custom-target-until-install [^] : INSTALL(CODE "EXECUTE_PROCESS( COMMAND del /F /Q ${TEMP2_CMAKE_INSTALL_PREFIX}\\\\bin\\\\*.lib )") But that doesn't work, as it is executed too early. I also searched if there are cpack options to exclude certain files, but the only thing I found were filters for source files, but nothing for target files. Anyway, I think the option to exclude the import libraries from target installs should exist without such hacks. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-03-20 04:44 | Richard Ulrich | New Issue | |||
2014-03-20 05:16 | Richard Ulrich | Note Added: 0035447 | |||
2014-03-20 08:30 | Brad King | Note Added: 0035448 | |||
2014-05-22 04:00 | Richard Ulrich | Note Added: 0035905 | |||
2014-05-22 08:49 | Brad King | Status | new => resolved | ||
2014-05-22 08:49 | Brad King | Resolution | open => no change required | ||
2014-11-03 08:38 | Robert Maynard | Note Added: 0037139 | |||
2014-11-03 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|