View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001134 | CMake | public | 2004-09-03 11:49 | 2004-09-17 12:45 | |||||
Reporter | Anton Deguet | ||||||||
Assigned To | System Admin | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001134: INSTALL_TARGETS doesn't install custom target | ||||||||
Description | I checked my CMake configuration files multiple times and I believe there is a bug when I try to install a custom target with INSTALL_TARGETS. The configuration looks like: # Run Doxygen, use tex output to date the last compilation ADD_CUSTOM_TARGET(${cisstDocDoxygen_BINARY_DIR}/latex/refman.tex ALL ${DOXYGEN} ${cisstDocDoxygen_BINARY_DIR}/cisst.doxygen-config ) # Pdf custon target, use the Makefile generated by Doxygen ADD_CUSTOM_TARGET(${cisstDocDoxygen_BINARY_DIR}/latex/refman.pdf ALL ${CMAKE_COMMAND} -E chdir ${cisstDocDoxygen_BINARY_DIR}/latex ${CMAKE_MAKE_PROGRAM} DEPENDS ${cisstDocDoxygen_BINARY_DIR}/latex/refman.tex ) # Install the pdf file INSTALL_TARGETS(/share/cisst/doc/doxygen ${cisstDocDoxygen_BINARY_DIR}/latex/refman.pdf) In cmake_install.cmake, there is nothing add. I downloaded the latest version of CMake as of today and the problem still occurs. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0001446) System Admin (reporter) 2004-09-16 17:09 |
You should really use INSTALL_FILES(<dir> FILES file file ...): INSTALL_FILES(/share/cisst/doc/doxygen ${cisstDocDoxygen_BINARY_DIR}/latex/refman.pdf) Done... |
(0001468) Anton Deguet (reporter) 2004-09-17 12:45 |
The reason I used INSTALL_TARGETS is that I also need a post install script declared as: SET_TARGET_PROPERTIES(${cisstDocDoxygen_BINARY_DIR}/latex/refman.pdf PROPERTIES POST_INSTALL_SCRIPT ${cisstDocDoxygen_BINARY_DIR}/postInstall.cmake) I found logical to require a target install to have a post install script. I turns out that for some reasons, I can use INSTALL_FILES (with ".pdf") and still have a post install script associated to a "non installed" target. I guess this is a fairly undocummented behavior that might break in future versions. Anyway, it works. Thank you. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |