INTERFACE_O should be a cached CMake variable

This commit is contained in:
Wolfgang Thaller 2017-12-05 21:58:39 +01:00
parent dad26c5f3a
commit 853031fa31
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ cmake_minimum_required(VERSION 2.8)
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
find_program(CONVERT_OBJ ConvertObj PATH "${CMAKE_INSTALL_PREFIX}/../bin/")
add_custom_command(
set(INTERFACE_O InterfaceO_NOTFOUND CACHE STRING "path to MPW Interface.o file")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Interface.s
COMMAND ${CONVERT_OBJ} ${INTERFACE_O} > ${CMAKE_CURRENT_BINARY_DIR}/Interface.s
)