Commit 4baa7ec3 authored by Sebastian Lipponer's avatar Sebastian Lipponer Committed by Sebastian Lipponer
Browse files

Platform GHS-MULTI: Make the compile identification work

Convert the initialization of CMAKE_C_COMPILER_TEST_ID_FLAGS to use
list(APPEND) instead of set(). That will allow platofmr modules to set
it.
parent b34c7c97
......@@ -72,8 +72,8 @@ else()
# Each entry in this list is a set of extra flags to try
# adding to the compile line to see if it helps produce
# a valid identification file.
set(CMAKE_C_COMPILER_ID_TEST_FLAGS_FIRST)
set(CMAKE_C_COMPILER_ID_TEST_FLAGS
list(APPEND CMAKE_C_COMPILER_ID_TEST_FLAGS_FIRST)
list(APPEND CMAKE_C_COMPILER_ID_TEST_FLAGS
# Try compiling to an object file only.
"-c"
......
......@@ -70,8 +70,8 @@ else()
# Each entry in this list is a set of extra flags to try
# adding to the compile line to see if it helps produce
# a valid identification file.
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST)
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS
list(APPEND CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST)
list(APPEND CMAKE_CXX_COMPILER_ID_TEST_FLAGS
# Try compiling to an object file only.
"-c"
# IAR does not detect language automatically
......
set(_arg1 "-bsp ${GHS_BSP_NAME} ${GHS_OS_DIR_OPTION} ${GHS_OS_DIR}")
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST "${_arg1}")
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