Commit 3ac0ab1a authored by Sebastian Lipponer's avatar Sebastian Lipponer Committed by Sebastian Lipponer
Browse files

Platform GHS-MULTI: Make the compiler test work

Hardcode required flags in CMAKE_{C,CXX}_COMPILE_OBJECT and
CMAKE_CXX_LINK_OBJECT. Set CMAKE_TRY_COMPILE_PLATFORM_VARIABLES
to forward these variables into the try_compile() instance.
parent 4baa7ec3
set(_arg1 "-bsp ${GHS_BSP_NAME} ${GHS_OS_DIR_OPTION} ${GHS_OS_DIR}") set(_arg1 "-bsp ${GHS_BSP_NAME} ${GHS_OS_DIR_OPTION} ${GHS_OS_DIR}")
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST "${_arg1}") set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST "${_arg1}")
set(CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> ${_arg1} <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
set(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> ${_arg1} <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
set(CMAKE_TRY_COMPILE_PLATFORM_VARIABLES
CMAKE_CXX_COMPILE_OBJECT
CMAKE_CXX_LINK_EXECUTABLE
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment