From: Orion P. <or...@co...> - 2013-01-07 23:14:40
|
On 01/07/2013 12:57 PM, Alan W. Irwin wrote: > To Andrew and Orion: > > One of my testers for ephcom is David Howells who works as a developer > for RedHat. He found that rpm's for ephcom that he implemented could > not be built without using DESTDIR for all install(CODE logic in the > ephcom build system. For example ephcom's doc/CMakeLists.txt file now > has this code fragment (which was originally copied without DESTDIR > from doc/CMakeLists.txt in PLplot). > > doc/CMakeLists.txt: install(CODE "message(STATUS \"Installing: > ${DOC_DIR}/doxygen/html tree\")\nexecute_process(COMMAND > ${CMAKE_COMMAND} -E copy_directory > ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html > ${DESTDIR}${CMAKE_INSTALL_DOCDIR}/doxygen/html)") > > Do you agree that DESTDIR should also be used in the equivalent PLplot > file? How have you guys been getting around this potential issue > for Debian and Fedora packaging of PLplot? I really don't think you ever want to specify ${DESTDIR} in *any* cmake scripts. cmake will automatically do the right things behind the scenes to handle DESTDIR. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane or...@co... Boulder, CO 80301 http://www.cora.nwra.com |