another attempt at fixing dependencies

This commit is contained in:
Wolfgang Thaller 2019-08-12 22:37:22 +02:00
parent 7d8b6140d6
commit f16edcfbef
3 changed files with 19 additions and 1 deletions

View File

@ -30,6 +30,15 @@ add_executable(SystemExtension
SystemExtension.r
ShowInitIcon.h)
if(TARGET retrocrt)
# Hack: if we are building as part of the Retro68 source tree,
# make sure the run-time library is already compiled
# (not needed for standalone projects)
add_dependencies(SystemExtension retrocrt)
endif(TARGET retrocrt)
set_target_properties(SystemExtension PROPERTIES
OUTPUT_NAME SystemExtension.flt

View File

@ -29,6 +29,15 @@
# First, let's build a separate code resource:
add_executable(WDEF wdef.c)
if(TARGET retrocrt)
# Hack: if we are building as part of the Retro68 source tree,
# make sure the run-time library is already compiled
# (not needed for standalone projects)
add_dependencies(WDEF retrocrt)
endif(TARGET retrocrt)
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
set_target_properties(WDEF PROPERTIES
# tell wdef.c that it is being compiled as a code resource

View File

@ -78,7 +78,7 @@ function(add_application name)
if(TARGET retrocrt)
target_link_libraries(${name} retrocrt)
add_dependencies(${name} retrocrt)
endif(TARGET retrocrt)
if(CMAKE_SYSTEM_NAME MATCHES Retro68)