Skip to content

Commit

Permalink
cmake: improve FindRTAI to find linux tree in more places.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Soetens <[email protected]>
  • Loading branch information
Peter Soetens committed Oct 7, 2010
1 parent 7e59c19 commit dd063a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/FindRTAI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ set(RTAI_PROCESS_LIBS RTAI_LIBRARY)
# If user provides Linux source dir, check and append it as well
if( LINUX_SOURCE_DIR )
set(linux_header_NAME linux/kernel.h)
find_path(Linux_INCLUDE_DIR NAMES ${linux_header_NAME} PATHS ${LINUX_SOURCE_DIR} NO_DEFAULT_PATH)
# We check for both the source dir or an installation dir:
find_path(Linux_INCLUDE_DIR NAMES ${linux_header_NAME} PATHS ${LINUX_SOURCE_DIR} PATH_SUFFIXES include NO_DEFAULT_PATH)
list(APPEND RTAI_PROCESS_INCLUDES Linux_INCLUDE_DIR)
endif()

Expand Down

0 comments on commit dd063a4

Please sign in to comment.