Skip to content

Commit

Permalink
Fix #2183, use osal_public_api header targets in doc
Browse files Browse the repository at this point in the history
Ensure that `osal_public_api_headerlist` is a dependency of all the doc
builds.  Also adds the OSAL top level directory to the mission build
which will define the `osal_public_api` target, and thus not require the
path to be repeated.
  • Loading branch information
jphickey committed Oct 25, 2022
1 parent be88a07 commit 44932c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/mission_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,12 @@ function(prepare)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/docs/cfe-usersguide")

# OSAL API GUIDE include PUBLIC API
set(OSAL_API_INCLUDE_DIRECTORIES
"${osal_MISSION_DIR}/src/os/inc"
"${CMAKE_BINARY_DIR}/docs"
)
add_subdirectory(${osal_MISSION_DIR} osal_public_api)
add_subdirectory(${osal_MISSION_DIR}/docs/src ${CMAKE_BINARY_DIR}/docs/osal-apiguide)

add_dependencies(cfe-usersguide osal_public_api_headerlist)
add_dependencies(mission-doc osal_public_api_headerlist)

# Pull in any application-specific mission-scope configuration
# This may include user configuration files such as cfe_mission_cfg.h,
# msgid definitions, or any other configuration/preparation that needs to
Expand Down

0 comments on commit 44932c3

Please sign in to comment.