aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authord3x0r <d3x0r@users.noreply.github.com>2017-07-06 02:09:44 -0700
committerd3x0r <d3x0r@users.noreply.github.com>2017-07-06 02:09:44 -0700
commit2557dd7439806448ad41b7bc5f175f4ed4f74d9c (patch)
treeaeec866073e16350de88b84b05d11b7578c3db1c /man
parent728bda183018cbc9736f03d4f21d2b4a2585e83d (diff)
downloadportable-2557dd7439806448ad41b7bc5f175f4ed4f74d9c.tar.gz
portable-2557dd7439806448ad41b7bc5f175f4ed4f74d9c.tar.bz2
portable-2557dd7439806448ad41b7bc5f175f4ed4f74d9c.zip
Add option LIBRESSL_SKIP_INSTALL
Internally LIBRESSL_SKIP_INSTALL, if not set becomes ENABLE_LIBRESSL_INSTALL so this by default is enabled. defining LIBRESSL_SKIP_INSTALL before hand will disable all install() rules. This is useful if another project includes and links to this statically. I chose to add a prefix to avoid potential name collision because the options are cached globally. If the installation is skipped, maybe it should also disable building apps? I didn't do that.
Diffstat (limited to 'man')
-rw-r--r--man/CMakeLists.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index 5923f58..f08091c 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -1,9 +1,11 @@
1install(DIRECTORY . 1if(ENABLE_LIBRESSL_INSTALL)
2 DESTINATION share/man/man3 2 install(DIRECTORY .
3 FILES_MATCHING PATTERN "*.3" 3 DESTINATION share/man/man3
4 ) 4 FILES_MATCHING PATTERN "*.3"
5 )
5 6
6install(DIRECTORY . 7 install(DIRECTORY .
7 DESTINATION share/man/man1 8 DESTINATION share/man/man1
8 FILES_MATCHING PATTERN "*.1" 9 FILES_MATCHING PATTERN "*.1"
9 ) 10 )
11endif(ENABLE_LIBRESSL_INSTALL)