From 1c301aabcd987bb9cc4011edc23cb112ab7d3262 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 6 Jun 2012 17:50:18 +0200 Subject: [PATCH] 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. --- runtime/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 089b782a..a7c0932c 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -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})