Skip to content

Commit d953451

Browse files
author
Jamie Smith
authored
Fix debug-less upload methods (ARMmbed#140)
* Fix debug-less upload methods * Oops, fix build outside of Clion
1 parent fb47f59 commit d953451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/cmake/mbed_ide_debug_cfg_generator.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Detect IDEs
77
# -------------------------------------------------------------
88

9-
if($ENV{CLION_IDE})
9+
if("$ENV{CLION_IDE}" AND MBED_UPLOAD_SUPPORTS_DEBUG)
1010
message(STATUS "Mbed: Detected CLion IDE, will generate CLion debug configurations")
1111
set(MBED_GENERATE_CLION_DEBUG_CFGS TRUE)
1212

@@ -16,7 +16,7 @@ if($ENV{CLION_IDE})
1616
message(FATAL_ERROR "In order to generate CLion configuration files, Mbed CE needs to know the name of the current CLion build profile. This name is the string typed into the Name textbox under Settings > Build, Execution, Deployment > CMake. Pass this name with '-DMBED_CLION_PROFILE_NAME=<name>'.")
1717
endif()
1818

19-
elseif(CMAKE_EXPORT_COMPILE_COMMANDS) # TODO: Is this actually a reliable way of detecting VS Code? Not sure if it will create false positives.
19+
elseif(CMAKE_EXPORT_COMPILE_COMMANDS AND MBED_UPLOAD_SUPPORTS_DEBUG) # TODO: Is this actually a reliable way of detecting VS Code? Not sure if it will create false positives.
2020
message(STATUS "Mbed: Detected VS Code IDE, will generate VS Code debug configurations")
2121
set(MBED_GENERATE_VS_CODE_DEBUG_CFGS TRUE)
2222

0 commit comments

Comments
 (0)