Cross compilation with Renesas ccrx compiler

Hi,

I was pleased to learn about the support for the Renesas CCRX compiler since version 4.1 but I am still encountering difficulties setting it up.

My crosstoolchain file defines the compiler path and other stuff

...
SET(CMAKE_C_COMPILER "${CCRX_ROOT}/bin/ccrx.exe")
...

The configure step failed with the following error. The CCRX compiler does not seem to be detected. Why ? Should I need specific definition to hepl CMake to detect the compiler ?

[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is unknown
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - failed
[cmake] -- Check for working C compiler: C:/Tools/Renesas/RX/2_8_0/bin/ccrx.exe
[cmake] -- Check for working C compiler: C:/Tools/Renesas/RX/2_8_0/bin/ccrx.exe - broken
[cmake] -- Configuring incomplete, errors occurred!
[cmake] CMake Error at C:/Tools/CMake/share/cmake-4.1/Modules/CMakeTestCCompiler.cmake:67 (message):
[cmake]   The C compiler
[cmake] 
[cmake]     "C:/Tools/Renesas/RX/2_8_0/bin/ccrx.exe"
[cmake] 
[cmake]   is not able to compile a simple test program.
[cmake] 
[cmake]   It fails with the following output:
[cmake] 
[cmake]     Change Dir: 'C:/Users/gallain/Documents/Sources/CMake-ccrx/build/CMakeFiles/CMakeScratch/TryCompile-r2cmwt'
[cmake]

I tried forcing the compiler with :

...
SET(CMAKE_C_COMPILER "${CCRX_ROOT}/bin/ccrx.exe")
SET(CMAKE_C_COMPILER_ID CCRX)
SET(CMAKE_C_COMPILER_ID_RUN TRUE)
SET(CMAKE_C_COMPILER_FORCED TRUE)
...

But this implies adding in my crosstoolchain :

SET(CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILER} ${CMAKE_C_FLAGS} -output=obj=<OBJECT> <SOURCE>")

And in the CMakeLists.txt

set(CMAKE_INCLUDE_FLAG_C "-include=")

Could you tell me where I’m going wrong?

Any assistance is appreciated.

Regards,

Gildas