Skip to content

Commit

Permalink
build: build and install info by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jan 16, 2024
1 parent 76b6dba commit 55af17e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 15 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
"minor": 21
},
"configurePresets": [
{
"name": "default",
"displayName": "Default (Release)",
"description": "Default preset for release build",
"inherits": [
"c99-release"
]
},
{
"name": "coverage-base",
"displayName": "Enable Coverage",
Expand Down Expand Up @@ -89,6 +97,7 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"BUILD_INFO": true,
"WITH_RUST": false,
"WITH_SQLITE3": true
}
Expand Down Expand Up @@ -145,5 +154,11 @@
"coverage-base"
]
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
}
]
}
6 changes: 1 addition & 5 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,5 @@ if (BUILD_INFO AND MAKEINFO)
add_custom_target(INFO ALL DEPENDS ${INFO_BIN})
add_dependencies(check INFO)

find_program(INSTALL_INFO NAMES ginstall-info install-info)
if (INSTALL_INFO)
install(FILES ${INFO_BIN} DESTINATION ${CMAKE_INSTALL_INFODIR})
install(CODE "execute_process(COMMAND ${INSTALL_INFO} --info-dir=${CMAKE_INSTALL_INFODIR} ${INFO_BIN})")
endif()
install(FILES ${INFO_BIN} TYPE INFO)
endif()

0 comments on commit 55af17e

Please sign in to comment.