print build type during CMake config; remove spurious call to pico_is_toplevel_project() (#818)

This commit is contained in:
Graham Sanderson 2022-05-10 13:00:22 -05:00 committed by GitHub
parent 9c616da1e5
commit 81bdcb6681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,7 @@ if (NOT TARGET _pico_sdk_inclusion_marker)
project(pico_sdk C CXX ASM) project(pico_sdk C CXX ASM)
message("Build type is ${CMAKE_BUILD_TYPE}")
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
if (PICO_DEOPTIMIZED_DEBUG) if (PICO_DEOPTIMIZED_DEBUG)
message("Using fully de-optimized debug build (set PICO_DEOPTIMIZED_DEBUG=0 to optimize)") message("Using fully de-optimized debug build (set PICO_DEOPTIMIZED_DEBUG=0 to optimize)")

View File

@ -53,7 +53,6 @@ if (NOT TARGET _pico_sdk_pre_init_marker)
message(WARNING "pico_sdk_init() should be called after the project is created (and languages added)") message(WARNING "pico_sdk_init() should be called after the project is created (and languages added)")
endif() endif()
add_subdirectory(${PICO_SDK_PATH} pico-sdk) add_subdirectory(${PICO_SDK_PATH} pico-sdk)
pico_is_top_level_project(ISTOP)
endmacro() endmacro()
macro(add_sub_list_dirs var) macro(add_sub_list_dirs var)