Don't install man page on windows

This commit is contained in:
Sebastian Messmer 2018-07-08 19:57:21 -07:00
parent 1dd88f0a67
commit 12105fe1ce
1 changed files with 16 additions and 11 deletions

View File

@ -1,4 +1,8 @@
project (doc) project (doc)
IF (WIN32)
MESSAGE(STATUS "This is Windows. Will not install man page")
ELSE (WIN32)
INCLUDE(GNUInstallDirs) INCLUDE(GNUInstallDirs)
find_program(GZIP gzip) find_program(GZIP gzip)
@ -13,3 +17,4 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cryfs.1.gz
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
CONFIGURATIONS Release CONFIGURATIONS Release
) )
ENDIF(WIN32)