From a46fccf54da9edae49154f9d4a61d288318758ff Mon Sep 17 00:00:00 2001 From: Rob Bocchino Date: Tue, 11 Nov 2025 10:49:12 -0800 Subject: [PATCH] Fix Ref build (#4409) CMake directives were out of order --- Ref/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Ref/CMakeLists.txt b/Ref/CMakeLists.txt index 4d07881007..232ed76576 100644 --- a/Ref/CMakeLists.txt +++ b/Ref/CMakeLists.txt @@ -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( $<$:-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/")