aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/pcre/002-all-enable_docs_pc.patch
blob: 4848e2c783f859d78756565c0784725119ee27ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -980,14 +980,18 @@
         SET(man3 ${man3_new})
 ENDIF(PCRE_BUILD_PCRECPP)
 
+if(ENABLE_DOCS)
 INSTALL(FILES ${man1} DESTINATION man/man1)
 INSTALL(FILES ${man3} DESTINATION man/man3)
 INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)
+endif()
+if(ENABLE_PKGCONFIG)
 INSTALL(FILES ${pc} DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/pcre-config"
         DESTINATION bin
         # Set 0755 permissions
         PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
+endif()
 
 IF(MSVC AND INSTALL_MSVC_PDB)
     INSTALL(FILES ${PROJECT_BINARY_DIR}/pcre.pdb