View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001134CMakepublic2004-09-03 11:492004-09-17 12:45
ReporterAnton Deguet 
Assigned ToSystem Admin 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001134: INSTALL_TARGETS doesn't install custom target
DescriptionI 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.
TagsNo tags attached.
Attached Files

 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.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team