Fix Ref build (#4409)

CMake directives were out of order
This commit is contained in:
Rob Bocchino 2025-11-11 10:49:12 -08:00 committed by GitHub
parent 2b65cc83cf
commit a46fccf54d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,10 +12,7 @@ cmake_policy(SET CMP0048 NEW)
cmake_minimum_required(VERSION 3.26)
project(Ref VERSION 1.0.0 LANGUAGES C CXX)
# Find the fprime package and include the core codebase
set(FPRIME_INCLUDE_FRAMEWORK_CODE ON)
find_package(FPrime REQUIRED PATHS "${CMAKE_CURRENT_LIST_DIR}/..")
# Add compile options used by all build modules
add_compile_options(
$<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
-Wall
@ -29,6 +26,10 @@ add_compile_options(
-pedantic
)
# Find the fprime package and include the core codebase
set(FPRIME_INCLUDE_FRAMEWORK_CODE ON)
find_package(FPrime REQUIRED PATHS "${CMAKE_CURRENT_LIST_DIR}/..")
# Add subdirectories for the Ref project specific components
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/PingReceiver/")
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/RecvBuffApp/")