mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
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(EXISTS ${BASE}/${dir}/${EXTERNAL_OBJECT_NAME})
|
||||||
ENDIF(NOT EXTERNAL_OBJECT)
|
ENDIF(NOT EXTERNAL_OBJECT)
|
||||||
ENDFOREACH(dir)
|
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)
|
IF(EXTERNAL_OBJECT)
|
||||||
MESSAGE("Found \"${EXTERNAL_OBJECT}\".")
|
MESSAGE("Found \"${EXTERNAL_OBJECT}\".")
|
||||||
ELSE(EXTERNAL_OBJECT)
|
ELSE(EXTERNAL_OBJECT)
|
||||||
FILE(GLOB_RECURSE EXTERNAL_OBJECT
|
MESSAGE(FATAL_ERROR "Could not find ${EXTERNAL_OBJECT_NAME}.")
|
||||||
"${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)
|
ENDIF(EXTERNAL_OBJECT)
|
||||||
|
|
||||||
# Build an executable using the external object file.
|
# Build an executable using the external object file.
|
||||||
|
Loading…
Reference in New Issue
Block a user