This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP430FR2155: ti-cgt-msp430_18.12.2.LTS

Part Number: MSP430FR2155

Tool/software: TI C/C++ Compiler

Hi,

I'm trying to use CMake to build my project and need some help. I'm using the ti-cgt-msp430_18.12.2.LTS compiler and getting the following errors for all source files in the linking step while building the project via CMake. 

 cannot find file "CMakeFiles/test.dir/folder/file.obj"

CMake is not generating the obj files in CMakeFiles/test.dir/folder as it is supposed to. It is generating the obj files in the cmake build folder.

Below is my toolchain file.

#Force CMake to use compilers specified in CMakeLists
INCLUDE(CMakeForceCompiler)

#Set platform specific information
SET(CMAKE_SYSTEM_NAME Generic)
SET(CMAKE_SYSTEM_PROCESSOR MSP430)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_CROSSCOMPILING 1)


#Set location of cross compiling tools
SET(tools ti-cgt-msp430_18.12.2.LTS/bin/)
SET(CMAKE_FIND_ROOT_PATH ti-cgt-msp430_18.12.2.LTS/bin/)

#Specify paths to find programs
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)


#Compile without linking
SET(CMAKE_TRY_COMPILE_NO_LINK 1)

Please let me know if I'm missing any additional settings,etc.

Thank you