I have issue while building the nrf5 bluetooth mesh light switch example using CMake on windows for Eclipse. I have run the following cmake command:
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D_ECLIPSE_VERSION=4.5.2 ../ but it gives the error
g -D_ECLIPSE_VERSION=4.5.2 ../
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Found Eclipse version 4.5.2 ()
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/MinGW/bin/c++.exe
-- Check for working CXX compiler: C:/MinGW/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:32 (set_target_link_options):
Unknown CMake command "set_target_link_options".
-- Configuring incomplete, errors occurred!
See also "D:/Developer/Raykor/nordic_mesh/nrf5_SDK_for_Mesh_v1.0.1_src/examples/
light_switch/client/build/CMakeFiles/CMakeOutput.log".
See also "D:/Developer/Raykor/nordic_mesh/nrf5_SDK_for_Mesh_v1.0.1_src/examples/
light_switch/client/build/CMakeFiles/CMakeError.log".
I am new to build project using cmake and i am not able find any reference about "set_target_link_options".