diff options
| author | JF <jf@codingfield.com> | 2020-01-26 18:29:50 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-01-26 18:29:50 (GMT) |
| commit | a956ed1e61533854d460385336ace6f37c277a87 (patch) | |
| tree | bb696fb7709e5ff9e0ad961f5ced86882fef4ac3 | |
| parent | a3ff41705e5dde48aab2c4fb2cb80f2144562648 (diff) | |
Default to JLink programmer/debugger is no USE_* variable has been specified during CMake build.
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 79b3dbe..837bf11 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=<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) |
