diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-12 07:18:03 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-12 07:18:03 -0800 |
commit | 51210a15c3479fccf7c4735f70e0c1a3b6085e8f (patch) | |
tree | 14710f79a5fd17dbb6de31a092a84c03f9e197e2 | |
parent | 25ccf653e8be351bb2c5d89236d3e0e960ae7a45 (diff) |
Moved man install target to main CMakeLists.txt.
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 531a3b6..5f1dc25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,10 @@ set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_ add_subdirectory(src) +if(UNIX) + INSTALL(FILES man/man1/cmark.1 DESTINATION share/man/man1) +endif(UNIX) + if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release." FORCE) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 45b0fec..6f30bf0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -74,10 +74,6 @@ install(DIRECTORY ./ DESTINATION include/${PROJECT_NAME} FILES_MATCHING PATTERN "*.h") -if(UNIX) - INSTALL(FILES ../man/man1/cmark.1 DESTINATION share/man/man1) -endif(UNIX) - include (CheckIncludeFile) CHECK_INCLUDE_FILE (stdbool.h HAVE_STDBOOL_H) |