Skip to content

Commit f5936d1

Browse files
committed
build: only include GNUInstallDirs once
Avoid including the utility once, which should avoid some unnecessary CMake checks, and reduces duplication.
1 parent ec9f53c commit f5936d1

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_
1818
include("FindAsan.cmake")
1919
include("CheckFileOffsetBits.cmake")
2020
include(CTest)
21+
include(GNUInstallDirs)
2122

2223
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
2324
message(FATAL_ERROR "Do not build in-source.\nPlease remove CMakeCache.txt and the CMakeFiles/ directory.\nThen: mkdir build ; cd build ; cmake .. ; make")

man/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
if (NOT MSVC)
2-
3-
include(GNUInstallDirs)
4-
52
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark-gfm.1
63
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
74

src/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
include(GNUInstallDirs)
2-
31
set(LIBRARY "libcmark-gfm")
42
set(STATICLIBRARY "libcmark-gfm_static")
53
set(HEADERS

0 commit comments

Comments
 (0)