Mercurial > projects > ldc
comparison runtime/CMakeLists.txt @ 1122:c614ef596a20
Fix imports copying for out-of-source build.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 15 Mar 2009 23:04:58 +0100 |
parents | bb57632d27ea |
children | 8403fec8c34c |
comparison
equal
deleted
inserted
replaced
1121:3d46f7ee466e | 1122:c614ef596a20 |
---|---|
28 set(RUNTIME_DIR ${PROJECT_BINARY_DIR}/../${RUNTIME} CACHE PATH "runtime source dir") | 28 set(RUNTIME_DIR ${PROJECT_BINARY_DIR}/../${RUNTIME} CACHE PATH "runtime source dir") |
29 | 29 |
30 if(D_VERSION EQUAL 1) | 30 if(D_VERSION EQUAL 1) |
31 # copy imports to runtime dir | 31 # copy imports to runtime dir |
32 set(LDC_IMPORTS) | 32 set(LDC_IMPORTS) |
33 macro(imports_file SRC) | 33 macro(imports_file SRCARG) |
34 get_filename_component(DEST ${SRC} NAME) | 34 get_filename_component(DEST ${SRCARG} NAME) |
35 set(SRC ${PROJECT_SOURCE_DIR}/${SRC}) | 35 set(SRC ${PROJECT_SOURCE_DIR}/${SRCARG}) |
36 set(DEST ${RUNTIME_DIR}/ldc/${DEST}) | 36 set(DEST ${RUNTIME_DIR}/ldc/${DEST}) |
37 | 37 |
38 list(APPEND LDC_IMPORTS ${DEST}) | 38 list(APPEND LDC_IMPORTS ${DEST}) |
39 add_custom_command( | 39 add_custom_command( |
40 OUTPUT ${DEST} | 40 OUTPUT ${DEST} |