only install CHANGES when present

This commit is contained in:
Mathieu Malaterre 2012-02-16 08:09:51 +00:00
parent 54e4e8f809
commit b267239603
1 changed files with 4 additions and 4 deletions

View File

@ -254,9 +254,9 @@ INSTALL( FILES ${OPENJPEG_BINARY_DIR}/OpenJPEGConfig.cmake
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# install CHANGES and LICENSE # install CHANGES and LICENSE
INSTALL( IF(EXISTS CHANGES)
FILES CHANGES INSTALL(FILES CHANGES DESTINATION ${OPENJPEG_INSTALL_DOC_DIR})
LICENSE ENDIF(EXISTS CHANGES)
DESTINATION ${OPENJPEG_INSTALL_DOC_DIR}) INSTALL(FILES LICENSE DESTINATION ${OPENJPEG_INSTALL_DOC_DIR})
INCLUDE (CMake/OpenJPEGCPack.cmake) INCLUDE (CMake/OpenJPEGCPack.cmake)