print build type during CMake config; remove spurious call to pico_is_toplevel_project() (#818)
This commit is contained in:
parent
9c616da1e5
commit
81bdcb6681
@ -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)")
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user