mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix #105 - don't randomly overwrite di files with thread.di.
DI_CMD is the CMake equivalent of a global variable, so it needs to be set in any case.
This commit is contained in:
@@ -185,9 +185,8 @@ macro(dc INPUT_D OUTLIST_O OUTLIST_BC MOREFLAGS PATH SUFFIX)
|
||||
list(APPEND ${OUTLIST_BC} ${OUTPUT_BC})
|
||||
|
||||
list(FIND GENERATE_DI "${INPUT_D}" INDEX)
|
||||
if(INDEX EQUAL -1)
|
||||
set(DI_CMD "")
|
||||
else()
|
||||
set(DI_CMD "")
|
||||
if(NOT INDEX EQUAL -1)
|
||||
string(REGEX REPLACE "src/ldc" "src/core" output ${output})
|
||||
string(REGEX REPLACE "^src/" "" di_output ${output})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user