- Commit
- 6b2193f804b3412eef476a834a7627d5a10da439
- Parent
- aef7803ebf8704b90e310edabfa4d13f3e1cb0a0
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Moved include file check to src/CMakeLists.txt.
My personal build of CMark ✏️
Moved include file check to src/CMakeLists.txt.
2 files changed, 5 insertions, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | CMakeLists.txt | 5 | 1 | 4 |
Modified | src/CMakeLists.txt | 4 | 4 | 0 |
diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -12,8 +12,7 @@ set(PROJECT_VERSION_MINOR 0) set(PROJECT_VERSION_PATCH 1) set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} ) -include (CheckIncludeFile) -CHECK_INCLUDE_FILE (stdbool.h HAVE_STDBOOL_H) +add_subdirectory(src) set(CMAKE_BUILD_TYPE Release) @@ -89,8 +88,6 @@ install(DIRECTORY include DESTINATION . # DESTINATION include/${PROJECT_NAME} # COMPONENT devel) -add_subdirectory(src) - set(CPACK_GENERATOR TGZ ZIP) if(WIN32 AND NOT CYGWIN) set(CPACK_GENERATOR NSIS ${CPACK_GENERATOR})
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -68,3 +68,6 @@ install(TARGETS ${PROGRAM} ${LIBRARY} if(UNIX) INSTALL(FILES ../man/man1/cmark.1 DESTINATION share/man/man1) endif(UNIX) + +include (CheckIncludeFile) +CHECK_INCLUDE_FILE (stdbool.h HAVE_STDBOOL_H)+ \ No newline at end of file