CMAKE_SOURCE_DIR can't be used there ENH: modify CMakeCCompilerId.c and .h so that sdcc can compile them. As they were the preprocessor produced: 9 "test.c" static char const info_compiler[] = "INFO:compiler[" # 40 "test.c" "" "]"; and the mixing of the preprocessing directives and the string constants didn't work. Alex
12 lines
414 B
CMake
12 lines
414 B
CMake
# the following file has been configured from @CMAKE_TOOLCHAIN_FILE@
|
|
INCLUDE(@_OWN_DIR@/CMakeToolchainFile.cmake)
|
|
|
|
# set CMAKE_SYSTEM to the CMAKE_SYSTEM_NAME
|
|
SET(CMAKE_SYSTEM ${CMAKE_SYSTEM_NAME})
|
|
# if there is a CMAKE_SYSTEM_VERSION then add a -${CMAKE_SYSTEM_VERSION}
|
|
IF(CMAKE_SYSTEM_VERSION)
|
|
SET(CMAKE_SYSTEM ${CMAKE_SYSTEM}-${CMAKE_SYSTEM_VERSION})
|
|
ENDIF(CMAKE_SYSTEM_VERSION)
|
|
|
|
SET(CMAKE_SYSTEM_LOADED 1)
|