From a956ed1e61533854d460385336ace6f37c277a87 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 26 Jan 2020 19:29:50 +0100 Subject: [PATCH] Default to JLink programmer/debugger is no USE_* variable has been specified during CMake build. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79b3dbe9..837bf11e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,9 +11,9 @@ if (NOT NRF5_SDK_PATH) message(FATAL_ERROR "The path to the NRF52 SDK must be specified on the command line (add -DNRF5_SDK_PATH=") endif () -#if(NOT USE_JLINK AND NOT USE_GDB_CLIENT) -# set(USE_JLINK true) -#endif() +if(NOT USE_JLINK AND NOT USE_GDB_CLIENT AND NOT USE_OPENOCD) + set(USE_JLINK true) +endif() if(USE_JLINK) if (NOT NRFJPROG)