diff --git a/CMakeLists.txt b/CMakeLists.txt index e4a6ff6..98399d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,5 +21,8 @@ include(FprimePython) fprime_setup_included_code() +# Project configuration, including the choice of the Python console +add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/config-overrides") + # This includes project-wide objects add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/FprimePythonReference") diff --git a/FprimePythonReference/ReferenceDeployment/CMakeLists.txt b/FprimePythonReference/ReferenceDeployment/CMakeLists.txt index c56980c..2f05183 100644 --- a/FprimePythonReference/ReferenceDeployment/CMakeLists.txt +++ b/FprimePythonReference/ReferenceDeployment/CMakeLists.txt @@ -13,8 +13,6 @@ register_fprime_deployment( SOURCES "${CMAKE_CURRENT_LIST_DIR}/Main.cpp" # Needed to appease compiler "${CMAKE_CURRENT_LIST_DIR}/fsw_main.py" # Python entrypoint - CHOOSES_IMPLEMENTATIONS - FprimePython_PythonConsole DEPENDS ${FPRIME_CURRENT_MODULE}_Top ) diff --git a/config-overrides/CMakeLists.txt b/config-overrides/CMakeLists.txt new file mode 100644 index 0000000..2598816 --- /dev/null +++ b/config-overrides/CMakeLists.txt @@ -0,0 +1,12 @@ +#### +# Project configuration: choices made for the whole build +# +# Os_Console is selected at compile time for the whole build, so the Python console is chosen here and not by the +# deployment. +#### +register_fprime_config( + FprimePythonReferenceConfig + CHOOSES_IMPLEMENTATIONS + FprimePython_PythonConsole + INTERFACE +) diff --git a/lib/fprime b/lib/fprime index 7d8f579..6d76adb 160000 --- a/lib/fprime +++ b/lib/fprime @@ -1 +1 @@ -Subproject commit 7d8f579f159d2f7c2d4984d92828575e37f87fa6 +Subproject commit 6d76adb952ebc56b4c74e629dd9ac8cfa21b8e3b diff --git a/lib/fprime-python b/lib/fprime-python index d973ba3..51905ae 160000 --- a/lib/fprime-python +++ b/lib/fprime-python @@ -1 +1 @@ -Subproject commit d973ba33cd34fc6ae8b2aa130484dfea5503e890 +Subproject commit 51905aee4c511197b05949814ef6082da993ff12