summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalOBJ/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ExternalOBJ/CMakeLists.txt')
-rw-r--r--Tests/ExternalOBJ/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/ExternalOBJ/CMakeLists.txt b/Tests/ExternalOBJ/CMakeLists.txt
index eef5841..5003a88 100644
--- a/Tests/ExternalOBJ/CMakeLists.txt
+++ b/Tests/ExternalOBJ/CMakeLists.txt
@@ -34,7 +34,11 @@ ENDFOREACH(dir)
IF(EXTERNAL_OBJECT)
MESSAGE("Found \"${EXTERNAL_OBJECT}\".")
ELSE(EXTERNAL_OBJECT)
- MESSAGE(FATAL_ERROR "Could not find ${EXTERNAL_OBJECT_NAME}.")
+ 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.