diff options
author | Brad King <brad.king@kitware.com> | 2003-06-10 21:39:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-10 21:39:44 (GMT) |
commit | 9c1afa85e9d7b1dfa21a4dd9264763ef4260a6df (patch) | |
tree | 09902f16b53f3889fea7baff0967d89f6d9e0b8f /Source | |
parent | dc7f5c426fe00be083d265d0c2d1819274002a04 (diff) | |
download | CMake-9c1afa85e9d7b1dfa21a4dd9264763ef4260a6df.zip CMake-9c1afa85e9d7b1dfa21a4dd9264763ef4260a6df.tar.gz CMake-9c1afa85e9d7b1dfa21a4dd9264763ef4260a6df.tar.bz2 |
ERR: Added work-around for cmake 1.6.7 bug in borland makefile generator.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 1f1816f..d68e816 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) |