diff --git a/CMakeLists.txt b/CMakeLists.txt index d58f3d0..b43354e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,15 +3,6 @@ cmake_minimum_required(VERSION 3.25) -# Initialize Mbed OS build system -set(MBED_TARGET "DISCO_F769NI") -set(MBED_APP_JSON_PATH mbed_app.json) -include(mbed-os/tools/cmake/app.cmake) -add_subdirectory(mbed-os) - -# Globally enable some compiler sanity -add_compile_options(-fwrapv -fno-strict-aliasing -fsigned-char) - # Enable tracing if wanted, on by default option(ENABLE_TRACING "Enable trace logging for debugging" ON) if(ENABLE_TRACING) @@ -19,6 +10,15 @@ add_compile_options(-DMBED_TRACE_MAX_LEVEL=TRACE_LEVEL_DEBUG) endif() +# Globally enable some compiler sanity +add_compile_options(-fwrapv -fno-strict-aliasing -fsigned-char) + +# Initialize Mbed OS build system +set(MBED_TARGET "DISCO_F769NI") +set(MBED_APP_JSON_PATH mbed_app.json) +include(mbed-os/tools/cmake/app.cmake) +add_subdirectory(mbed-os) + # Create SNTP project project(sntp) file(GLOB SNTP_FILES "${PROJECT_SOURCE_DIR}/third_party/sntp/*.cpp")