cmake: fix memory mock lds for windows

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-03-19 14:18:56 +01:00 committed by Liam Girdwood
parent c47f3dbc03
commit 6f88295017
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ set(memory_mock_lds_in ${PROJECT_SOURCE_DIR}/test/cmocka/memory_mock.x.in)
set(memory_mock_lds_out ${PROJECT_BINARY_DIR}/test/cmocka/memory_mock.x)
add_custom_command(OUTPUT ${memory_mock_lds_out}
COMMAND cat ${memory_mock_lds_in} | ${CMAKE_C_COMPILER} -E -P - > ${memory_mock_lds_out}
COMMAND ${CMAKE_C_COMPILER} -E -DLINKER -P -o ${memory_mock_lds_out} -x c ${memory_mock_lds_in}
DEPENDS ${memory_mock_lds_in}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
COMMENT "Generating linker script: ${memory_mock_lds_out}"