diff options
| -rwxr-xr-x | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | man/CMakeLists.txt | 11 | 
2 files changed, 9 insertions, 8 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index f375289..d4b8d98 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,11 @@ add_subdirectory(src)  if(CMARK_TESTS AND (CMARK_SHARED OR CMARK_STATIC))    add_subdirectory(api_test)  endif() -add_subdirectory(man) +# TODO(compnerd) should this be enabled for MinGW, which sets CMAKE_SYSTEM_NAME +# to Windows, but defines `MINGW`. +if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows) +  add_subdirectory(man) +endif()  if(CMARK_TESTS)    enable_testing()    add_subdirectory(test testdir) diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 13e8742..8ed5448 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,7 +1,4 @@ -if (NOT MSVC) -  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 -    DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) - -  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man3/cmark.3 -    DESTINATION ${CMAKE_INSTALL_MANDIR}/man3) -endif(NOT MSVC) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 +  DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man3/cmark.3 +  DESTINATION ${CMAKE_INSTALL_MANDIR}/man3) | 
