yselkowitz / rpms / lensfun

Forked from rpms/lensfun 6 years ago
Clone
Blob Blame History Raw
diff -up lensfun-0.3.0/docs/CMakeLists.txt.orig lensfun-0.3.0/docs/CMakeLists.txt
--- lensfun-0.3.0/docs/CMakeLists.txt.orig	2014-11-17 11:06:01.842490051 -0600
+++ lensfun-0.3.0/docs/CMakeLists.txt	2014-11-17 11:03:25.823906935 -0600
@@ -22,6 +22,7 @@ ADD_CUSTOM_TARGET(doc
 # install documentation  
 INSTALL(DIRECTORY ${CMAKE_DOC_OUT}/ DESTINATION ${DOCDIR})
 
+IF(INSTALL_HELPER_SCRIPTS)
 # create and install man pages
 ADD_CUSTOM_TARGET(man ALL)
 ADD_CUSTOM_COMMAND(
@@ -38,3 +39,4 @@ INSTALL(FILES
     ${CMAKE_CURRENT_BINARY_DIR}/lensfun-add-adapter.1 
     DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1
 )
+ENDIF(INSTALL_HELPER_SCRIPTS)