BUG: We still want to print out the location where the object was found if it was found by the glob.

This commit is contained in:
Brad King 2005-02-18 15:43:29 -05:00
parent c60cf6585d
commit 94a3e4be53
1 changed files with 5 additions and 5 deletions

View File

@ -31,14 +31,14 @@ FOREACH(dir external.dir . ${CMAKE_CONFIGURATION_TYPES})
ENDIF(EXISTS ${BASE}/${dir}/${EXTERNAL_OBJECT_NAME})
ENDIF(NOT EXTERNAL_OBJECT)
ENDFOREACH(dir)
IF(NOT EXTERNAL_OBJECT)
FILE(GLOB_RECURSE EXTERNAL_OBJECT
"${ExternalOBJ_BINARY_DIR}/Object/${EXTERNAL_OBJECT_NAME}")
ENDIF(NOT EXTERNAL_OBJECT)
IF(EXTERNAL_OBJECT)
MESSAGE("Found \"${EXTERNAL_OBJECT}\".")
ELSE(EXTERNAL_OBJECT)
FILE(GLOB_RECURSE EXTERNAL_OBJECT
"${ExternalOBJ_BINARY_DIR}/Object/${EXTERNAL_OBJECT_NAME}")
IF(NOT EXTERNAL_OBJECT)
MESSAGE(FATAL_ERROR "Could not find ${EXTERNAL_OBJECT_NAME}.")
ENDIF(NOT EXTERNAL_OBJECT)
MESSAGE(FATAL_ERROR "Could not find ${EXTERNAL_OBJECT_NAME}.")
ENDIF(EXTERNAL_OBJECT)
# Build an executable using the external object file.