From 9c1afa85e9d7b1dfa21a4dd9264763ef4260a6df Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 10 Jun 2003 17:39:44 -0400 Subject: [PATCH] ERR: Added work-around for cmake 1.6.7 bug in borland makefile generator. --- Source/kwsys/CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 1f1816ff0..d68e81694 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -130,6 +130,15 @@ IF(NOT UNIX) SET(CMD ${BIN_DIR}${CFG_INTDIR}/${KWSYS_NAMESPACE}EncodeExecutable.exe) SET(FWD ${BIN_DIR}${CFG_INTDIR}/${KWSYS_NAMESPACE}ProcessFwd9x.exe) + + # Dependency work-around for cmake 1.6.7 bug. + SET(DEP ${CMD} ${FWD}) + IF(NOT EXECUTABLE_OUTPUT_PATH) + IF(CMAKE_GENERATOR MATCHES "Borland Makefiles") + SET(DEP ${KWSYS_NAMESPACE}EncodeExecutable.exe ${KWSYS_NAMESPACE}ProcessFwd9x.exe) + ENDIF(CMAKE_GENERATOR MATCHES "Borland Makefiles") + ENDIF(NOT EXECUTABLE_OUTPUT_PATH) + ADD_CUSTOM_COMMAND( TARGET ${KWSYS_NAMESPACE} SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/ProcessFwd9x.c @@ -137,7 +146,7 @@ IF(NOT UNIX) ARGS ${FWD} ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c ${KWSYS_NAMESPACE} ProcessFwd9x OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c - DEPENDS ${CMD} ${FWD}) + DEPENDS ${DEP}) ADD_DEPENDENCIES(${KWSYS_NAMESPACE} ${KWSYS_NAMESPACE}ProcessFwd9x ${KWSYS_NAMESPACE}EncodeExecutable) ENDIF(NOT UNIX)