ERR: Added work-around for cmake 1.6.7 bug in borland makefile generator.

This commit is contained in:
Brad King 2003-06-10 17:39:44 -04:00
parent dc7f5c426f
commit 9c1afa85e9
1 changed files with 10 additions and 1 deletions

View File

@ -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)