diff options
author | Brad King <brad.king@kitware.com> | 2005-02-18 20:43:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-18 20:43:29 (GMT) |
commit | 94a3e4be5332e8174db39876537073329e788202 (patch) | |
tree | b024a39fafc3d90edf0769f386b4153296b68851 /Tests/ExternalOBJ | |
parent | c60cf6585d820151c760e1ef9078bd4b2ba5eca1 (diff) | |
download | CMake-94a3e4be5332e8174db39876537073329e788202.zip CMake-94a3e4be5332e8174db39876537073329e788202.tar.gz CMake-94a3e4be5332e8174db39876537073329e788202.tar.bz2 |
BUG: We still want to print out the location where the object was found if it was found by the glob.
Diffstat (limited to 'Tests/ExternalOBJ')
-rw-r--r-- | Tests/ExternalOBJ/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/ExternalOBJ/CMakeLists.txt b/Tests/ExternalOBJ/CMakeLists.txt index 5003a88..7607f69 100644 --- a/Tests/ExternalOBJ/CMakeLists.txt +++ b/Tests/ExternalOBJ/CMakeLists.txt @@ -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. |