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:
parent
c60cf6585d
commit
94a3e4be53
|
@ -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)
|
||||
ENDIF(EXTERNAL_OBJECT)
|
||||
|
||||
# Build an executable using the external object file.
|
||||
|
|
Loading…
Reference in New Issue