This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issues building nRF5 Mesh with CMake

I'm having issues building nRF5 SDK for Mesh v0.10.1-Alpha examples. On an Ubuntu 16.04 VM, I have installed the toolchain per the Debian/Ubuntu instructions and was able to build/run the unit tests (although I had a 'Failed' on 32/63 - 'mesh_flash'). CMake 3.10 was installed according to their instructions.

When I run cmake -DTOOLCHAIN=gccarmemb -DPLATFORM=nrf52832_xxAA .., I get the following error:

CMake Error at CMakeLists.txt:31 (set_target_link_options):
  Unknown CMake command "set_target_link_options".

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.10)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also ".../nrf5_SDK_for_Mesh_v0.10.1-Alpha_src/examples/light_switch/client/CMakeFiles/CMakeOutput.log".

I'll admit, I have very little experience using CMake, mostly following instructions. I can't find reference to "set_target_link_options" anywhere, and when I remove those lines (for kicks), it breaks on "create_hex(${target})" and possibly elsewhere. I hate to ask a question based on my lack of experience, but I'm not making much headway on my own.

Thanks so much!

Related