Skip to content

Commit

Permalink
Add FPRIME_PROJECT_ROOT to CMAKE_MODULE_PATH. Fixes #2443 (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch authored Dec 20, 2023
1 parent 8a1612c commit 221149a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/FPrime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ include(options)
include(sanitizers) # Enable sanitizers if they are requested
include(required)

# Add project root's cmake folder to module path
if (IS_DIRECTORY "${FPRIME_PROJECT_ROOT}/cmake")
list(APPEND CMAKE_MODULE_PATH "${FPRIME_PROJECT_ROOT}/cmake")
endif()

# Setup fprime library locations
list(REMOVE_DUPLICATES FPRIME_LIBRARY_LOCATIONS)
set(FPRIME_BUILD_LOCATIONS "${FPRIME_FRAMEWORK_PATH}" ${FPRIME_LIBRARY_LOCATIONS} "${FPRIME_PROJECT_ROOT}")
Expand Down

0 comments on commit 221149a

Please sign in to comment.